I am using conio currently. (A newby) I know there are 16 colors, but no orange? Can I link another library for orange? Thanks!!
asked Nov 01 '12 at 19:31
Try system("Color C"); it's the closest orange color in C++.
answered Nov 01 '12 at 19:51
For a windows system
First include windows.h with the other includes.
Next type this line of code:
next before you make a cout << "Hello World" command type the following
To explain a little what is going on, this function takes in a bitmap (not the image type but bits in a certain order.)
Now before you type in just any old color you need to know something, You can only type in Red Blue and Green. But you can type in more then one by doing the bit-wise operation OR (|) so here is an example:
If you want to change the foreground and background both, no problems:
There is one more thing to note, if you want to back the background or foreground brighter you can use INTENSITY here is an example:
answered Nov 01 '12 at 21:28