Join 131,105 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,125 people online right now. Registration is fast and FREE... Join Now!
Simple macro for outputting anything compatible with a stream (cout, ofstream) to both the console and an outfile. Useful for projects in class when you are required to have an outfile, or just for convenience in general. Better than a function as you don't have to provide overload versions.