FAQ: Cout and textcolor question...

This is a discussion on FAQ: Cout and textcolor question... within the FAQ Board forums, part of the General Programming Boards category; I use Borland C++ Builder and was wondering if there was any way to get cout and textcolor() to work ...

  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
    RoD
    RoD is offline
    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
    Registered User
    Join Date
    Nov 2002
    Posts
    8

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21