For what console or Windows apps? For console apps you generally have available textcolor(int). The available colors will probably be in conio.h. For Windows, use SetTextColor(HDC, COLORREF). The second parameter is a 32 bit value, I believe, and can be substituted with a call to the macro PALETTERGB(unsigned char, unsigned char, unsigned char)...hope that helps.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.