Sunday, July 12, 2009

I used setbkcolor(BLUE); function in my C++ code, but I don't know how can I define it?

I'm assuming that you're using Borland Turbo C++ for DOS.





Near the top of your source file (outside of the main() procedure), put this:





#include %26lt;graphics.h%26gt;





You will also need to set the linker to include the graphics library. In the IDE, click the Options menu and go into Linker-%26gt;Libraries and check the Graphics Library checkbox.

secret garden

No comments:

Post a Comment