• Advertisement

Archived

This topic is now archived and is closed to further replies.

colors in C++;

This topic is 6024 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I want to make a lil game in C++; basically a rocket races against another rocket and you have to piolot one of them, the thing is, i want to make it in color and text. for example (how do i cout text in different colors?) Larry Charles CEO Centra Entertainment Studios

Share this post


Link to post
Share on other sites
Advertisement
For DOS you can use conio.h
SetTextColor(GREEN) I think it was will change the color to green...
SetBGColor() I think changes the back color
Be sure to use cprintf() instead of cout though
Sorry if any info''s wrong, I haven''t used conio.h in a while

Share this post


Link to post
Share on other sites
Oh ya that''s right I forgot. Sorry.
Borland and I *think* DJGPP have support for SetTextColor. VC++ has a limited version of conio.h

Share this post


Link to post
Share on other sites

  • Advertisement