FAQ: Cout and textcolor question... [Archive] - C Board

PDA

View Full Version : FAQ: Cout and textcolor question...


Laniston
12-19-2002, 03:44 AM
I use Borland C++ Builder and was wondering if there was any way to get cout and textcolor() to work together? If i set a certain textcolor and then use cout to display something, the text remains the default console color. The only way i have found to change the color of the text is to use printf, but I hear it is not good to be using printf and cout in the same application. Can anyone help me out? Thanks

RoD
12-19-2002, 05:26 AM
http://www.nelie.org/steveprog/tutorials.html

download "Colors in console" and peter.h, the header allows u to do this, and colors in console is a program i wrote to demonstrate how to use it.

Happy coding.

sh0rty
12-19-2002, 10:54 AM
http://www.sunlightd.com/Windows/FAQ.html#ConsoleChangeColour