|
|
@ -4,13 +4,13 @@ |
|
|
|
#include <string> |
|
|
|
|
|
|
|
struct print { |
|
|
|
print() { if(false) std::cout.setstate(std::ios_base::failbit); } |
|
|
|
~print() { if(false) { std::cout.clear(); } else { std::cout << std::endl << std::flush; } } |
|
|
|
print() {} |
|
|
|
~print() { std::cout << std::endl << std::flush; } |
|
|
|
}; |
|
|
|
|
|
|
|
struct noprint { |
|
|
|
noprint() { if(true) std::cout.setstate(std::ios_base::failbit); } |
|
|
|
~noprint() { if(true) { std::cout.clear(); } else { std::cout << std::endl << std::flush; } } |
|
|
|
noprint() { std::cout.setstate(std::ios_base::failbit); } |
|
|
|
~noprint() { std::cout.clear(); } |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|