change text color c
#include <stdio.h>
#include <windows.h>
#define COLOR_DEFAULT 7
#define LIGHT_RED 12
void setColor(int color);
int main()
{
setColor(LIGHT_RED);
printf("This text is red");
setColor(colorDefault);
}
void setColor(int color)
{
HANDLE hConsole;
hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(hConsole, color);
}
Also in C:
- random en c
- diferencia entre * y & en c
- python 3.9 install pip cv2
- change text color c
- calculate max of three numbers using ternary operator in c
- toggling setting clearing checking changing a bit in c
- logging.logger
- how to make two arrays equal in c
- get the latest field in mongodb collection
- how to create random integers from a specific range in c language
- scanf integer
- read string with space c
- sidebar materializecss
- es palindromo
- matplotlib legend remove box
- is animal crossing for kids
- c unused parameter
- find the largest number in else if javascript
- print hello world in c
- factorial of a given number in c
- a c program to computes the prime numbers in the user mentioned range
- arduino keypad wait for key
- command line coursera
- linux kernel write()