Modify Windows Console Color using C++

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

Debugging with command-line parameters in Visual Studio

right-click the project; choose properties; go to the Debugging section; there is a box for “Command Arguments”.