c++ - How to disable cout output in the runtime? -
i use cout
debugging purpose in many different places in code, , frustrated , comment of them manually.
is there way suppress cout output in runtime?
and more importantly, let's want suppress cout
outputs, still want see 1 specific output (let's final output of program) in terminal.
is possible use ""other way"" of printing terminal showing program output, , when suppressing cout still see things printed using ""other way""?
don't use cout
debugging purposes, define different object (or function, or macro) calls through it, can disable function or macro in 1 single place.
Comments
Post a Comment