#include <windows.h>
#pragma comment(lib, "user32.lib")
字体变色
#define BEGIN_CONSOLE_TEXT SetConsoleTextAttribute(hOut,
FOREGROUND_RED | BACKGROUND_INTENSITY);
#define END_CONSOLE_TEXT SetConsoleTextAttribute(hOut,
FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE);
获取控制台句柄
HANDLE hOut;