#include<windows.h>
#include<stdio.h>
int main()
{
//BACKGROUND_RED | BACKGROUND_GREEN| BACKGROUND_INTENSITY | BACKGROUND_BLUE
SetConsoleTextAttribute (GetStdHandle(STD_OUTPUT_HANDLE),
BACKGROUND_BLUE|BACKGROUND_RED);
printf("\n\nBackground Color Change");
SetConsoleTextAttribute (GetStdHandle(STD_OUTPUT_HANDLE),
BACKGROUND_GREEN);
printf("\n\nBackground Color Change");
SetConsoleTextAttribute (GetStdHandle(STD_OUTPUT_HANDLE),
BACKGROUND_INTENSITY);
printf("\n\nBackground Color Change");
SetConsoleTextAttribute (GetStdHandle(STD_OUTPUT_HANDLE),
BACKGROUND_RED);
printf("\n\nBackground Color Change");
SetConsoleTextAttribute (GetStdHandle(STD_OUTPUT_HANDLE),
BACKGROUND_BLUE);
printf("\n\nBackground Color Change");
SetConsoleTextAttribute (GetStdHandle(STD_OUTPUT_HANDLE),
BACKGROUND_RED|BACKGROUND_INTENSITY);
printf("\n\nBackground Color Change");
return 0;
}
Post Top Ad
Monday, 6 November 2017
Home
Unlabelled
Change Text Background Color
Change Text Background Color
About Anand Aithani
hey, my self Anand Singh Aithani,
"Advance Diploma in Information Technology" Diploma Holder, and also have " Advance Diploma in Computer Hardware and Networking".
this website for helping all of you who want to grow with us ......
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment