Another Examples
A manipulator is used to change features of the I/O system.
ostream & endl (ostream & out) {// write the end of line characterout << '\n';// then flush the bufferout.fflush();// then return the bufferreturn out;
ostream & operator << (ostream & out, ostream & (*fun)(ostream &)) {// simply execute functionreturn fun (out);