how do i change the text color in my program?
Printable View
how do i change the text color in my program?
there are other ways but conio.h is the easiest if you have it
Quote:
Originally posted by Dude
[B]O.k header files conio.h, stdlib.h, stdio.h
[B]then void main() command
[B]the type textattr(31);
[B]and last of all type cprintf("type text here");
[B]And what that does is prints your text with a blue line behind it :D
Quote:
Originally posted by Dude
I'll Send You a Example
wtf!!! thanks for the help., but textattr isnt working. says it is an undeclared identifier...
im using vc 6.0 introductory.... hmm, any ideas?
It worked for me with Borland 3.1, well i think you need a DOS 16/32 (i think) bit compiler to make it work. But when it ran, the text was all f****** up!
search the c++ board for this. I have covered it at least twice since the new board came into existence. This board has tools to make your life a little easier.... one of which is the search facility.If you had used it you would have found your answer straight away.