TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: THOMAS MAEDER
from: AARON T. SMITH
date: 1997-06-25 18:10:00
subject: Colors

EB> Can anyone tell me how to change the current color of cout ?
 TM> No. cout doesn't have a color.
 TM> cout is a stream object where you can write  all  kind  of  data,  not
 TM> their visualization.
Cout doesn't have a color, but if you use a Windows compiler you can change 
the way that windows displays cout.  If you use a DOS base compiler then you 
need to try something like 
#include 
and 
system("echo XXX");
I can't remember the echo code to change color.
--- Maximus/2 3.01
---------------
* Origin: After Hours BBS, Lebanon PA, (717)865-2636 (1:270/315)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.