colored text

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: May 2004
Posts: 19
Reputation: matika is an unknown quantity at this point 
Solved Threads: 0
matika matika is offline Offline
Newbie Poster

colored text

 
1
  #1
May 25th, 2004
is there anything in c++ that provides to print out on screen colored text
ex.
cout<<"welcome"<<endl;
output:
welcome
thx
Reply With Quote Quick reply to this message  
Join Date: Mar 2004
Posts: 219
Reputation: BountyX is an unknown quantity at this point 
Solved Threads: 8
BountyX's Avatar
BountyX BountyX is offline Offline
Code Guru

Re: colored text

 
0
  #2
May 27th, 2004
Well depending on your operating system you may be able to get by with something like this:

  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. }
A Hacker's Mind:
"I thought what I'd do was, I'd pretend I was one of those deaf-mutes..." - J.D.Salinger
Reply With Quote Quick reply to this message  
Join Date: May 2004
Posts: 256
Reputation: FireNet will become famous soon enough FireNet will become famous soon enough 
Solved Threads: 6
FireNet's Avatar
FireNet FireNet is offline Offline
Posting Whiz in Training

Re: colored text

 
0
  #3
May 27th, 2004
You can also use conio.h.Check my post below.It should give enough info I think.

http://www.daniweb.com/techtalkforum...0122#post30122
See what you can, remember what you need

Fourzon | Earn via Coding
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC