I was wonder how to color the text/background of text in C++. What is the command to do that?
I was wonder how to color the text/background of text in C++. What is the command to do that?
dos or command prompt?
ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.
what do you mean by that? i am using microsoft visual C++ if that makes a difference...
include conio.h, and then look at it.
what do you mean "then look at it"? do you mean the header file or the text?
Open up the header file, and look for something on the lines of textcolor.
better yet you could use this really special tool that not many people seem to know about. click here to try out this magical tool. you'll be amazed by it's powers!
woooowwww...........your being sarcastic. Anyways, here's something that people actually use if they want to search: http://www.google.comOriginally posted by TechWins
better yet you could use this really special tool that not many people seem to know about. click here to try out this magical tool. you'll be amazed by it's powers!
um... thanx... but that doesnt really solve my problem...
Ok, here's what u do *assuming you're programming this for a console app*:
1. Go to the "Project Properties"
2. Go to "Further Object Files or linker options"
3. Add this in: C:\Dev-C++\Lib\conio.o *assuming C:|Dev-C++\ is the installation path, if not, then change it*
4. Click "OK"
5. Include the conio.h file.
*NOTE: This is all assuming you are using Dev-C++ 4.0, but if not, then it shouldn't be hard to change*
you dont use the textcolor() function to change the text color with VC++, i cant remember what the function is called tho
"There are three kinds of people in the world...
Those that can count and those that can't."
>> you dont use the textcolor() function to change the text color with VC++, i cant remember what the function is called tho
It's called SetConsoleTextAttribute
All spelling mistakes, syntatical errors and stupid comments are intentional.