How can I change the output color in C++?

+2 votes
asked Nov 23 by darkcat
For example I want to output 0 and 1 and I want 0 to be red and 1 to be blue, how can I do this on this editor?

1 Answer

0 votes
answered Nov 25 by (2,230 points)
You could do that in windows console. This editor however functions on linux distribution so it is not possible in here.
commented Nov 25 by thedude
You are wrong, look up ANSI colors
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...