how do i change the colour of the text in c+?
Printable View
how do i change the colour of the text in c+?
Do a search at:
http://www.ProgrammersHeaven.com
Or try using google.
I found various zips and downloaded a few last night I believe.
jesus christ, just answer the guy's question. Don't give him links to pointless sites so he could search hours and hours for something.
SideNote: I expect some nerdy programmer to copy and paste what I said into quote tags(you guys always do that)
> just answer the guy's question.
We will. Just as long as he has tried first.
> Don't give him links to pointless sites so he could search hours and hours for something.
Why not?
This way he figures it out for himeself and has the gratification and knowledge of learning something on his own, instead of people "breast feeding" him.
The links weren't pointless in my opinion.
ProgrammersHeaven has a lot of useful information.
Google works wonders.
Nerdy hu? I guess I am a nerd. I have no problem with it either.Quote:
I expect some nerdy programmer to copy and paste what I said into quote tags(you guys always do that)
I sense poor attitude me thinks...
side note:
I searched for something for about 2 weeks, and finally found it.
I was very satisfied and excited once I did.
Bonny why dont you answer his question?
THATS WHAT I THOUGHT!!
and, about ur wondering why u always get flamed, you just answered that question.
//Neccessary header fileQuote:
Originally posted by Bermuda
how do i change the colour of the text in c+?
#include <conio.h>
//Change the text color
void textcolor(int Color);
//Change the background color
void textbackground(int Color);
//Print colored text (same syntax as printf() )
cprintf(...);
thanks for the answer guys. i couldn't get it. i was unable to find the header file that contained the code.
if not Borland (or compatibles), try Sunlight's tutorial:
http://sunlightd.virtualave.net/Wind...Q.html#GUISkin)
the tutorial includes instructions on the use of the API function:
SetConsoleTextAttribute();