how we can change our color of display in C++?

Recommended Answers

All 3 Replies

And of course it will depend on what operating system you are using.

how we can change our color of display in C++?

#include<graphics.h>

then the "setcolor" function is used for define color of the objects and the text in the graphics mode.
like

{
setcolor(co);

//for terminating

//after
getch();
closegraph();
}

hopes u may understand if not then u may ask me again.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.