fork(41) download
#include <sstream>
#include <iostream>

int main()
{
    std::istringstream iss(" abcd 1234    -6242          1212");

    std::string s;
    int a, b, c;

    iss >> s >> a >> b >> c;

    std::cout << s << " " << a << " " << b << " " << c << std::endl;
}
Success #stdin #stdout 0s 3028KB
stdin
Standard input is empty
stdout
abcd 1234 -6242 1212