Lecture overview -- Keyboard shortcut: 'u'  Previous page: Stream State -- Keyboard shortcut: 'p'  Next page: More manipulators -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Alphabetic index  Help page about these notes  Course home    Basic facilities - slide 39 : 46

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.