Saturday, April 6, 2013

textbackground in c

textbackground function is used to change of current background color in text mode. See available colors.
Declaration : void textbackground(int color);

C programming code for textbackground

#include<stdio.h>
#include<conio.h>
 
main()
{
   textbackground(RED);
 
   cprintf("C program to change background color.");
 
   getch();
   return 0;
}
Output: 
background color

No comments:

Post a Comment