Thread: FAQ: Cout and textcolor question...

  1. #1
    Laniston
    Guest

    Question FAQ: Cout and textcolor question...

    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

  2. #2
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    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.

  3. #3

Popular pages Recent additions subscribe to a feed
Website Security Test