just to enquire something abt c++. usually we program and the output of the text is white color. is there any ways to program it with colorful fonts? please enlighten :D
First, it's "inquire". And please, don't post stuff like "abt". How hard is it to type the full word?
The answer to your question: If you are writing a console program, there is nothing you can do within the code to change the font, because the output stream is just written to text, more or less. You must right click the console window and choose "defaults" to change the text and background colors, and it will show up the next time you open the console window.
where XX is a pair of hex values to change the color the first one is background, second is text.
0 = Black
8 = Gray
1 = Blue
9 = Light Blue
2 = Green
A = Light Green
3 = Aqua
B = Light Aqua
4 = Red
C = Light Red
5 = Purple
D = Light Purple
6 = Yellow
E = Light Yellow
7 = White
F = Bright White
try that syntax in your compiler, oh and that only works for windows.