Hello! I'm programming this console program and I need some help.
Using MSVC++, how do I color cout output? I tried the conio.h function but it doesn't work, and the Microsoft one doesn't work either. Can anyone help?
Hello! I'm programming this console program and I need some help.
Using MSVC++, how do I color cout output? I tried the conio.h function but it doesn't work, and the Microsoft one doesn't work either. Can anyone help?
What will people say if they hear that I'm a Jesus freak?
What will people do if they find that it's true?
I don't really care if they label me a Jesus freak, there is no disguising the truth!
Jesus Freak, D.C. Talk
-gnu-ehacks
Hi There,
From what i gather, you can't do it using 'cout'. You have to use the platform specific functions for Windows.
Take a look at SetConsoleTextAttribute(), SetConsoleTitle() and SetConsoleWindowInfo() for info on how to set attributes of a console application. You will have to use the WriteConsole() and ReadConsole() functions to be able to output in colour.
There are a variety of GetConsole* methods too.... you might find them handy!
Good luck!
Quidquid latine dictum sit, altum sonatur.
Whatever is said in Latin sounds profound.