Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

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

+2 votes
asked Nov 23, 2019 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

+1 vote
answered Nov 25, 2019 by gameforcer (2,990 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, 2019 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.