Hello,
I have to include a function that have been given to me in a program to set text and background color. That's the function:
Code:
void TextColor(int fontcolor,int backgroundcolor,HANDLE screen)
{
unsigned short color_attribute;
color_attribute = backgroundcolor;
color_attribute = _rotl(color_attribute,4) | fontcolor;
SetConsoleTextAttribute(screen,color_attribute);
}
However I'm a noob and I don't know how to call it. I've tried TextColor(RED,BLACK) but compiler (dev-c++) gives me an error (to few arguments for TextColor).
Can you help me?