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 do i write words in different colors in c++?

+8 votes
asked Jan 17, 2025 by ayoub (240 points)

How do I write words in different colors in c++?

please if you know how answer

1 Answer

0 votes
answered Jan 18, 2025 by Peter Minarik (101,340 points)
The standard output does not support colours. The terminal, that displays the standard output does.

This means that the platform running the program will support colours differently.

Check this out: https://question.onlinegdb.com/15254/how-to-change-output-color-with-system-color
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and receive answers from other members of the community.
...