如果你想在调试的时候输出棋盘,却不知道怎么改变字体颜色时,试试这个:
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE) , 0x07);
来源