C Board  

Go Back   C Board > General Programming Boards > FAQ Board

 
 
LinkBack Thread Tools Display Modes
Old 12-19-2002, 03:44 AM   #1
Laniston
Guest
 
Posts: n/a
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
 
Old 12-19-2002, 05:26 AM   #2
RoD
Banned
 
RoD's Avatar
 
Join Date: Sep 2002
Posts: 6,334
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.
RoD is offline  
Old 12-19-2002, 10:54 AM   #3
Registered User
 
Join Date: Nov 2002
Posts: 8
:o)

http://www.sunlightd.com/Windows/FAQ...leChangeColour
sh0rty is offline  
 

Thread Tools
Display Modes

Forum Jump


All times are GMT -6. The time now is 12:27 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

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