Tuesday, December 31, 2013

How to print a color text in programming C

You can use a compiler(Turbo C/C++) write blow text and complie,, then run.show you a massage"I am a programmer" with Color green.
(if you need compiler download turbo C++)

#include
#include

main()
{
clrscr();
textcolor(GREEN);
cprintf("I am a C programmer");
getch();
}
Output:

No comments:

Post a Comment

Please post your Comment..