c++ Programming Glossary: scoped_cout_redirector
Redirecting in C++ http://stackoverflow.com/questions/3667201/redirecting-in-c by @MSalters #include iostream #include fstream class scoped_cout_redirector public scoped_cout_redirector const std string filename backup_.. #include fstream class scoped_cout_redirector public scoped_cout_redirector const std string filename backup_ std cout.rdbuf filestr_ filename.c_str.. filename.c_str sbuf_ filestr_.rdbuf std cout.rdbuf sbuf_ ~scoped_cout_redirector std cout.rdbuf backup_ private scoped_cout_redirector scoped_cout_redirector..
|