How do I change the colour of text?
Use the SetConsoleTextAttribute function. This takes a handle to the console (use GetStdHandle(STD_OUTPUT_HANDLE) to obtain it) and a colour value. You can obtain different colours through different combinations of the constants FOREGROUND_BLUE, FOREGROUND_GREEN, FOREGROUND_RED, FOREGROUND_INTENSITY, BACKGROUND_BLUE, BACKGROUND_GREEN, BACKGROUND_RED, and BACKGROUND_INTENSITY.