can you give example on how to add color in my C programming language?
How to add color in a C programming language?? what is the syntax used??
here.....
#include %26lt;stdio.h%26gt;
#include %26lt;conio.h%26gt;
main()
{
clrscr();
textcolor (5);
cprintf ("The statement will have a color");
getch();
}
in textcolor(5)... the number inside the paremthesis corresponds to the color of your choice... i dont know what color is 5 but... im sure it has a corresponding color..
you must place the textcolor function above ur printf function
and your printf function must be changed to cprintf...
there... i hope it will help you..
Reply:i still don't get the point. Report It
Reply:Let's say i want to run a program that display " Hi how are u?" in red in color. How the code should be written? Report It
garden centres
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment