Sven Axelsson 24 Nov 2001
How to create an output stream that writes to the debug terminal.
There are many different schools of how to debug a program (yeah, I know - write it correctly from the start), but whatever tools you prefer it is often very convenient just to use the printf
approach. Well, since you are a modern C++ kind of person, you don't really want printf
, you want to use an output stream, like cerr
.