C++ provide some class for stream manipulate, just like the base class istream,ostream and iostream.They have the hirachy relation like this.