Mega Code Archive
Categories
/
C++
/
Data Type
Set the boolalpha flag on cout
#include
using namespace std; int main() { cout.setf(ios::boolalpha); cout << true << endl;; cout.unsetf(ios::boolalpha); cout << true << endl;; return 0; }