#include <iostream>
// #include <iomanip>
// necessary if using setiosflags(flags)
// or resetiosflags(flags)
using namespace std;

int main()
{
     // See section 4.2 pg 71 for Boolean type info
     cout << true << ' ' << false << endl;
     // See Josuttis section 13.7.2 Input/Output
     // Format of Boolean Values pg 617
     // boolapha sets the flag ios::boolapha
     cout << boolalpha;
     cout << true << ' ' << false << endl;
     cout << noboolalpha;
     cout << true << ' ' << false << endl;
     // Format flags can also be used to format
     // Boolean type output
     // See Josuttis section 13.7.1 Format Flags
     // pages 615ff
     cout.setf(ios::boolalpha);
     // alternate full syntax
     // std::cout.setf(std::ios::boolalpha);
     cout << true << ' ' << false << endl;
     cout.unsetf(ios::boolalpha);
     cout << true << ' ' << false << endl;
     return 0;
}
