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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.