#include #include //for istrstream; it includes iostream for you using namespace std; int main(int argc, char **argv) { istrstream ist("size 38L"); char word[100]; int i; char c; ist >> word >> i >> c; if (!ist) { cerr << argv[0] << ": the istrstream failed\n"; return EXIT_FAILURE; } cout << "word == \"" << word << "\"\n" << "i == " << i << "\n" << "c == '" << c << "'\n"; return EXIT_SUCCESS; }