read a string as a stream in c++ code example
Example: c++ string to stream
// EXAMPLE
ostringstream ssTextAsStream("This is part of the stream."); // declare ostringstream
string sTextAsString = ssTextAsStream.str(); // converted to string
cout << sTextAsString << "\n"; // printed out
/* SYNTAX
<YourStringStream>.str()
*/
/* HEADERS
#include <iostream>
#include <sstream>
using namespace std;
*/