+ 1
How to change background color in c++
10 Antworten
+ 9
@Martin sources should be good.
also things like that will not work in the playground.
I tried it already.
You need to do it in an IED.
+ 7
@Martin
the "should be good"
I checked the sources near the end of making the comment and did not change the wording.
+ 5
@Martin
I can't help that my codes are the bomb 💣
+ 1
you mean background color of your program/project. that's pretty simple just you need this [system ("color 0A");] change A with B, C ... F to get other colors and 0 with 1-9. 0-9 for foreground and A-F for background colors. 😊😃
0
@Martin Taylor yeah . I shared the full color schemes. the complete list. 😊
0
Here, you can use an ancient technique known as an ANSI escape sequence
https://repl.it/@christophercharillo/Colored-text
Unfortunately, the ANSI escape sequence will not work on windows.
Much like how windows system function doesn't work on linux.