# include <sstream>
formatter << "the average of " << n << " and "
<< m << " is " << ((n + m)/2.0);
string s = formatter.str();
string text = "Isn't this a wonderful feature";
istringstream breaker(text);
while (breaker >> word)cout << word << endl; // print each word on a separate line