Modify Windows Console Color using C++

Using function SetConsoleTextAttribute() to modify。 Following are the color code and output sample image。