954,135 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

colored text

is there anything in c++ that provides to print out on screen colored text
ex.
cout<<"welcome"<

matika
Newbie Poster
19 posts since May 2004
Reputation Points: 15
Solved Threads: 0
 

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;
}
BountyX
Posting Whiz in Training
230 posts since Mar 2004
Reputation Points: 28
Solved Threads: 9
 

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

http://www.daniweb.com/techtalkforums/showthread.php?p=30122#post30122

FireNet
Posting Whiz in Training
258 posts since May 2004
Reputation Points: 108
Solved Threads: 7
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You