Menu

How to Change the Color the output of a program in C and C++ using text background

Color the output of a program in C Background Color Menu using SetConsoleTextAttribute for Color the output of a program in C Text background  in C  #include<stdio.h> #include<conio.h> #include<windowS.h> int main() { printf(“\n\n\t\tTheSmolt-Learn for Free\n\n\n”); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_GREEN); printf(“This is Green Background!”); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_BLUE|BACKGROUND_RED| BACKGROUND_INTENSITY); printf(“\n\n This
Learn For Free.