I'm looking at the sstream bookstore and I've run into stringstream. Googleando came to the conclusion that it is the same as string, but I can not understand it.
According to my understanding, is it to create a string and use it as a "cin" to concatenate?
#include <string> // std::string
#include <iostream> // std::cout
#include <sstream> // std::stringstream
int main () {
std::stringstream ss;
ss << 100 << ' ' << 200;
int foo,bar;
ss >> foo >> bar;
std::cout << "foo: " << foo << '\n';
std::cout << "bar: " << bar << '\n';
return 0;
}