Lecture 3 - Slide 20 : 27
Manipulators

A manipulator is a distinguished operand accepted by the << and >> IO operators

A manipulator mutates the state of a stream

  cout << 17 << endl << showbase 
       <<  hex << 17 << endl
       << oct << 17 << endl;
manipulators-1.cc
The fragment in a complete program.
manipulators-1-output
Program output.
manipulators-1a.cc
A variant of the program above - without showbase.
manipulators-1a-output
Program output from the variant.