remember im new at c++ but how can i add colors to my output???????????????????????????????????????????? ?????????????????????????????????????????????????? ????????????????????
remember im new at c++ but how can i add colors to my output???????????????????????????????????????????? ?????????????????????????????????????????????????? ????????????????????
Laugh
What compiler..
Either way, this will help you:
http://cboard.cprogramming.com/searc...der=descending
msvc++
Laugh
put this in your source file:
void setcolour(unsigned short colour)
{
HANDLE HandleConsoleText = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(HandleConsoleText,colour);
}
Make sure it's outside the main function.
to change the colour in console text, all you do now is, put this before the text:
setcolout();
inside the brackets you put a number, this is the colour, experiment with different numbers to get different colours
e.g.
setcolout(78);
gives you yellow text on a red background.
Go Microsoft Visual C++ (ROCK ON!) (i am also new to C++)
I hope this helps, ciao.
sorry i made a mistake, accidentally spelling something wrong,
i put:
setcolout();
sorry i made a spelling mistake, you put:
setcolour();
ciao.
where can i find a list of the color codes like 78 43 34 34 lol ????????????????????????
Laugh