take advantage of these two functions to make your program a lot prettier...
Code:
// SetConsoleCursorPosition( handle, COORD )
COORD coordinate;
coordinate.X = xPosition; // a standard console window is 80 cells across. ( 0 - 79 )
coordinate.Y = yPosition; // a standard console window is 25 cells long. ( 0 - 24 )
// move cursor to specified coordinates
SetConsoleCursorPosition( GetStdHandle(STD_OUTPUT_HANDLE), coordinate );
Code:
// SetConsoleTextAttribute( handle, attribute )
// these are the basic colors to use:
#define RED FOREGROUND_RED | FOREGROUND_INTENSITY
#define BLUE FOREGROUND_BLUE | FOREGROUND_INTENSITY
#define GREEN FOREGROUND_GREEN | FOREGROUND_INTENSITY
#define BGRED BACKGROUND_RED | BACKGROUND_INTENSITY
// mix red/blue for magenta, red/green for yellow, blue/green for cyan, all colors for white, leave off intensity for darker colors, etc..
// change text to blue
SetConsoleTextAttribute( GetStdHandle(STD_OUTPUT_HANDLE), BLUE );
// change background to red
SetConsoleTextAttribute( GetStdHandle(STD_OUTPUT_HANDLE), BGRED );
its as simple as that