Please, plaese someone answer. It is so confusing because right above this function
I have the void colored_text function which displays a colored text and works fine.
1 2 3 4 5 6 7 8 9
|
void colored_text (string text, unsigned short color)
{
HANDLE hcon = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(hcon,color);
cout << text;
SetConsoleTextAttribute(hcon,15);
}
|
They are both declared before main()
void colored_text ( string text,unsigned short color );
void colored_text_compare (string text, unsigned short color, int large = 1, int small = 0 );
I give initial values to large, small to have the text colored in the case the user doesn't provide any values. If I get it to work I won't need the void colored_text function
I tried removing the values 1, 0 from colored_text_compare, but nothing changed.