Text/Background Colors

This is a discussion on Text/Background Colors within the C++ Programming forums, part of the General Programming Boards category; How can I change the text and background colors in C++? I used
Code:
system("color 02")
for the color change ...

In too many ways, depending on your operating system. One of the most portable ways is to get PDCurses. Its documentation is here. You are looking for the attr functions and possibly the color functions depending on what you want to do.

If you are not concerned with portability and you are programming for windows only, take a look at console.h.

If the same as above, but you are developing for linux only, you can also use PDCurses which is nothing more than NCurses made portable.