Sep 25, 2014

Using System Functions to change background and text color

7:43 PM Posted by Unknown No comments
Some Color Codes:
0 = Black
1 = Blue
2 = Green
3 = Aqua
4 = Red
5 = Purple
6 = Yellow
7 = White
8 = Gray
9 = Light Blue
A = Light Green
B = Light Aqua
C = Light Red
D = Light Purple
E = Light Yellow
F = Bright White


--------------------------------
We can use function system:


system("color *background**foreground*");
For example:
system( "color FC");
cout<< "C++"<< end;
That would dispaly the lerrer "C++" with a white background and ren text.

0 Comment:

Post a Comment