I want every character to be a different color.
for example,
cout << "Hello world" << endl;
- H would be red
- e would be blue
- l would be orange
and so on.
I know this can be done, I just don’t know the code for it.
and I want to change the background color to white. How would I do that?
There is no (standard) cross-platform way to do this. On windows, try using
conio.h.It has the:
functions.
For example: