943,487 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 8520
  • C++ RSS
May 25th, 2004
1

colored text

Expand Post »
is there anything in c++ that provides to print out on screen colored text
ex.
cout<<"welcome"<<endl;
output:
welcome
thx
Similar Threads
Reputation Points: 15
Solved Threads: 0
Newbie Poster
matika is offline Offline
19 posts
since May 2004
May 27th, 2004
0

Re: colored text

Well depending on your operating system you may be able to get by with something like this:

C++ Syntax (Toggle Plain Text)
  1. #include <stdlib.h>
  2. #include <iostream.h>
  3. void main()
  4. {
  5. cout<<"Boring..."<<endl;
  6. system("color 0B");
  7. cout<<"AMAZING!"<<endl;
  8. }
Reputation Points: 28
Solved Threads: 9
Posting Whiz in Training
BountyX is offline Offline
222 posts
since Mar 2004
May 27th, 2004
0

Re: colored text

You can also use conio.h.Check my post below.It should give enough info I think.

http://www.daniweb.com/techtalkforum...0122#post30122
Reputation Points: 108
Solved Threads: 7
Posting Whiz in Training
FireNet is offline Offline
256 posts
since May 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Confused Where to Start?
Next Thread in C++ Forum Timeline: how the user can choose the directory of files





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC