hi guys, today I will tell you that how to change text and background color in c++.
by default the text color of c++ is black but c++ allow you to change color using suitable commands.
if you want to change the text color of c++ then use the following syntax
syntax:
textcolor(red);
cprintf("hellow world");
don't forget to include conio.h in your program.you can choose any color of yours choice.
you can also change the background color by using the syntax:
textbackground(red);
if you have any question then ask me in the comments section.
download c++ projects.
how to change text color in c++
Reviewed by Aishwarya chauhan
on
9:39 AM
Rating:
No comments: