09-23-2003, 02:53 PM
I have a few novice questions regarding C++ (the free version of Borland's C++ 5.5 compiler). Firstly, I am having problems changing the colour of text or the background using the CONIO.H header file.
doesn't seem to do anything, neither does
. I have tried various text modes... C80, C40, and C40X14 etc. I am having no problem with any of the other CONIO commands.
Also, though the question might seem a bit stupid, is there any way to input strings directly with some CIN command? Currently, I am CIN.GET ting an array of characters--the STRING type will not let me input any data with CIN. I am doing this all in a function declared as a STRING and RETURNing the array of characters works, but generates a compiler error. Any suggestions?
Thanks.
Code:
textcolor(BLUE)
or
textcolor(1)
Code:
textbackground(BLUE)
Also, though the question might seem a bit stupid, is there any way to input strings directly with some CIN command? Currently, I am CIN.GET ting an array of characters--the STRING type will not let me input any data with CIN. I am doing this all in a function declared as a STRING and RETURNing the array of characters works, but generates a compiler error. Any suggestions?
Thanks.