How To Set Background Color In Dev C%2b%2b

broken image


In this video, you will learn how to turn on Dark mode in Dev C & How to change the theme in cLike, Share, Comment &, Subscribe Tech dot/tekdot is a plat. Declaration: void setbkcolor (int color); setbkcolor function changes current background color e.g. Setbkcolor (YELLLOW) changes the current background color to YELLOW. Remember that default drawing color is WHITE and background color is BLACK. C programming code for setbkcolor. Sep 30, 2002 Enum classes and nullptr in C11 - November 27, 2011 Learn about The Hash Table - November 20, 2011 Rvalue References and Move Semantics in C11 - November 13, 2011.

Function textcolor is used to change the color of drawing text in C programsTurbo C compiler only.

Declaration: void textcolor(int color);
where color is an integer variable. For example, 0 means BLACK color, 1 means BLUE, 2 means GREEN and soon. You can also use write appropriate color instead of integer. For example,you can write textcolor(YELLOW); to change text color to YELLOW. But use colors in capital letters only.

C programming code to change text color

Set Background Color Html

#include
#include

main()
{
textcolor(RED);
cprintf('C programming');

Set

getch();
return0;
}

C programming code for blinking text

#include
#include

main()
{
textcolor(MAGENTA+BLINK);
cprintf('C programming');

How To Set Background Color In Dev C++ Text

getch();
return0;
}

How To Set Background Color In Dev C++ Version

Note that we have used cprintf function instead of printf. This is because cprintf send formatted output to text window on screen and printf sends it to stdin.





broken image