I want to add color to the output text in C++.
In C I used to use
textcolor(4);
then
cprintf
but in C++, how to do this. Pls help
Also pls tell how to change color of input text in 'cin'
Help C++ ?
yar there is no restriction that u can't use the cprintf or printf scanf in the c++,,,,,,,,,u can use all the inbuild function of c in c++
and this textcolor function is for both c and c++ that's why u have to use the cprintf after that
if u want to change the background or font size , style, color then press alt+ enter and then right click on the turboc 's minmize which is on the start menu bar and go to it's property
Reply:All c functions can be used in C++. Check which header files u used in c to use the textcolor function and include that header file. That's it.
Reply:Using iostream.h will allow you to print to the screen using cout
Reply:why don't u use the same library , it will work,
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment