How do you change the text of a cout so that it is a color other than the standard white? I would like to have the cout highlight certain data. Thanks!
How do you change the text of a cout so that it is a color other than the standard white? I would like to have the cout highlight certain data. Thanks!
Doesn't look like a less bulky way to do it other than :
http://msdn.microsoft.com/library/de...tattribute.asp
Highly non-portable though. If portability is an issue you may want to consider the PDCurses library.
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.
Ahh, never worked with it so I didn't think of it, I just searched for setting the text color and found that link buried in a forum. I assumed it would work for him since Dev C++ is a windows IDE. I should check out PDCurses some day heh.
I do like it. Had a few problems in the beginning. There seemed to be no documentation for it other than the provided example programs, untill I realized it's based on NCurses. So any NCurses documentation will suffice for the most part. This is probably the best choice for graphic consoles that we want portable.
Another, more sophisticated, library is TVision. It's based on the old borland library. It was what created those cool looking interfaces ("cool", back then) on most DOS applications. There's ports for most systems, but I'm not sure how well implemented they are.
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.
Or you could have searched the forums .... I think that works in dev anyway.
Adrian XW all the way!