c++ input string stream 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;
*/