Mega Code Archive
Demonstrate the setf() and unsetf() functions
#include
using namespace std;
int main()
{
// Set the boolalpha flag on cout.
cout.setf(ios::boolalpha);
cout << true << endl;;
// clear the boolalpha flag.
cout.unsetf(ios::boolalpha);
cout << true << endl;;
return 0;
}