previous | start | next

Writing a toString() Method: 4

To use the stringstream type, a header file similar to <ostream> and <fstream> is needed:

 #include <ostream>  // o for output stream
 #include <istream>  // i for input stream
 #include <fstream>  // f for file streams
 #include <sstream>  // s for string streams
     


previous | start | next