how do i change the text color in my program?
how do i change the text color in my program?
there are other ways but conio.h is the easiest if you have it
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
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!
Ess
Like a rat in a maze who says,
"Watch me choose my own direction"
Are you under the illusion
The path is winding your way? - Rush
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.
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi