|
Description
Some compilers in their
conio.h include file have a textattr
function this allows you to set the
color of the text .
Code
#include <conio.h>
int main()
{
int color;
for (color=1;color<=16;color++)
{
textattr(color);
cprintf("This is color %d",color);
}
return 0;
}
Information
tested using LCC Win
32
|