can anyone assist me plz
inserting coloured text into program codehow to insert coloured text into program code
Page 1 of 1
3 Replies - 485 Views - Last Post: 23 February 2010 - 12:11 AM
#1 Guest_Odane*
inserting coloured text into program code
Posted 22 February 2010 - 08:43 PM
Replies To: inserting coloured text into program code
#2
Re: inserting coloured text into program code
Posted 22 February 2010 - 09:08 PM
Here's something I found after a quick google search. There is a snippet around here somewhere as well.
#include <windows.h>
#include <iostream.h>
int main()
{
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 0); //replace the 0 with a number for the color you want
cout << "Your text here" << endl;
return 0;
}
#3
Re: inserting coloured text into program code
Posted 22 February 2010 - 11:06 PM
I've seen the code on some 20 year old page on microsoft.com a while back on how to do it, and it's a little more involved than that snippet there... I do have it around somewhere, but wouldn't a google search be easier, or even microsoft.com search?
Page 1 of 1
|
|

New Topic/Question
Reply
MultiQuote








|