Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem compiling......

Status
Not open for further replies.

jch02140

Programmer
Apr 3, 2003
6
HK
Hi, I am learning programming C++ now, and I have make a program using Turbo C++ 3.00 (Dos), but I cannot compile the code and execute it. Also, I do not know how to add colours into my program. Can anybody help me with this?....
 
Explain some of your code, why are you having troubles.
To change the color of the background depends if you are using graphics library or you are in text mode.

To change the color in text mode use the instruction:
TextBackGround (color);
then you must clean the screen;
something like this
TextBackGround (2);
clrscr ();

and in graphics mode you use:
SetBkColor (Color);


I don't know why people continue using that old versions of C.

---LastCyborg---
 
It runs in the back of my brain that you also need to include CONIO for colors to work in Turbo C. It's been a long time since I used that compiler.


James P. Cottingham

When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity.
[tab][tab]Albert Einstein explaining his Theory of Relativity to a group of journalists.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top