delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/27/22:02:30

From: "Y.K. Goh" <s6606555 AT np DOT edu DOT sg>
Sender: "Y.K. Goh" <s6606555 AT npnsnews>
Subject: Print Colored Text in C++
Newsgroups: comp.os.msdos.djgpp
X-User-Info: 153.20.61.77 s6606555 npnsnews
NNTP-Posting-Host: 153.20.15.92
Message-ID: <36afbadc.0@nsuxnews>
Date: 28 Jan 1999 09:18:20 +0800
X-Trace: 28 Jan 1999 09:18:20 +0800, 153.20.15.92
Lines: 19
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

We use cprintf or cputs to print colored text onto the screen.
However in C++, programmers are encouraged to use iostream
instead of printf/puts. So my question is: Can iostream be used
to print colored text? If it can, how do I do it (perhaps provide
me with a small snippet of code to see how to do it)?

Anyway, is it a convention for C++ programmers to print colored
text using iostream? Or C++ programmers still stick to cprintf
to do it?

Thanks for your attention.
------------------------------
Yong-Kwang Goh
Ngee Ann Polytechnic
The Centre for Computer Studies

Email: s6606555 AT np DOT edu DOT sg
------------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019