RSS Forums RSS

colored text

Please support our C++ advertiser: Programming Forums
Reply
Posts: 19
Reputation: matika is an unknown quantity at this point 
Solved Threads: 0
matika matika is offline Offline
Newbie Poster

Solution colored text

  #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
AddThis Social Bookmark Button
Reply With Quote  
Posts: 218
Reputation: BountyX is an unknown quantity at this point 
Solved Threads: 7
BountyX's Avatar
BountyX BountyX is offline Offline
Code Guru

Re: colored text

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

#include <stdlib.h>
#include <iostream.h>
void main()
{
		cout<<"Boring..."<<endl;
		system("color 0B");
		cout<<"AMAZING!"<<endl;
} 
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  
Posts: 255
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

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Similar Threads
Other Threads in the C++ Forum
Views: 4834 | Replies: 2 | Currently Viewing: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 12:48 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC