1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 #include "[Log.h]"19 20 #if defined(WIN32) && !defined(WIN8RT)21 #define WIN32_LEAN_AND_MEAN22 #include <Windows.h>23 #endif24 25 [MATH_BEGIN_NAMESPACE]26 27 void [SetStdoutTextColor](int newColor)28 {29 #if defined(WIN32) && !defined(WIN8RT) // Win8 metro apps don't have SetConsoleTextAttribute.30 SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), (WORD)newColor);31 #endif32 }33 34 [MATH_END_NAMESPACE] Go back to previous page