Publisher review:Output Macro - Simple macro for outputting anything compatible with a stream (cout, ofstream) to both the console and an outfile. 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.
cin is fairly standard; you may want to change outfile to whatever ofstream object you are using. Make sure you open the file properly before calling this macro! Example: output("The Value of x is: "); output(x); output('n'); OR just put them all in one output command using your carrot operators.
Output Macro is a C/C++ script for Snippets scripts design by Videege.
It runs on following operating system: Windows / Linux / BSD / Solaris.
Output Macro - Simple macro for outputting anything compatible with a stream (cout, ofstream) to both the console and an outfile.
Operating system:Windows / Linux / BSD / Solaris