Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: C++ text  (Read 3400 times)

0 Members and 1 Guest are viewing this topic.

Zach7

  • Guest
C++ text
« on: July 14, 2006, 11:18:57 AM »
I need help changing the color of a certain cout statement. Here is the small code:

[highlight]cout << "Input: "; [/highlight]

cin >> insert;

cout << endl;




I need to change the text *input: * into a different collor.I hope you guys can help me out.

Rob Pomeroy



    Prodigy

  • Systems Architect
  • Thanked: 124
    • Me
  • Experience: Expert
  • OS: Other
Re: C++ text
« Reply #1 on: July 19, 2006, 02:48:38 AM »
If you're outputting this text to a terminal device/window, do you know if that device even supports colour?  If it does then you need to output the escape codes required to change the colour.  Google for your terminal device + escape codes + color.
Only able to visit the forums sporadically, sorry.

Geek & Dummy - honest news, reviews and howtos