DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C++ (http://www.daniweb.com/forums/forum8.html)
-   -   colored text (http://www.daniweb.com/forums/thread6310.html)

matika May 25th, 2004 8:38 pm
colored text
 
is there anything in c++ that provides to print out on screen colored text
ex.
cout<<"welcome"<<endl;
output:
welcome
thx

BountyX May 27th, 2004 12:12 am
Re: colored text
 
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;
}

FireNet May 27th, 2004 5:11 am
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


All times are GMT -4. The time now is 10:52 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC