Achievements
|
Text color |
|
I was wondering how i could make one word in c++ be a certain color?
like ;
cout << " Welcome to blabla << name;
I want to make ther user name of the person blue or something. =/
|
|
|
|
|
Vidus
|
Joined: 4th May 2009
Location: Michigan
|
|
Re: Text color |
|
you can use conio.h to set color in console, or if you want to use windows console here good tutorial on it. click
i would go with conio way it as simple as this
------------------------------------
#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
cout << "Welcome to blabla ";
textcolor (GREEN);
cout << Name;
cin.get();
return 0;
}
-----------------------------------
|
|
|
|
|
Achievements
|
Re: Text color |
|
Vidus posted: (4th May 2009 04:43 am)
you can use conio.h to set color in console, or if you want to use windows console here good tutorial on it. click
i would go with conio way it as simple as this
------------------------------------
#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
cout << "Welcome to blabla ";
textcolor (GREEN);
cout << Name;
cin.get();
return 0;
}
-----------------------------------
Alright let me check it out thanks. =D
|
|
|
|
|
Neo
|
Re: Text color |
|
|
|