Clear the boolalpha flag
#include <iostream> using namespace std; int main() { cout.setf(ios::boolalpha); cout << true << endl;; cout.unsetf(ios::boolalpha); cout << true << endl;; return 0; }