would this work, stringstream(a,b)>> c >> d;
allowing you to do multiple at once?
Printable View
would this work, stringstream(a,b)>> c >> d;
allowing you to do multiple at once?
how much time have you spent to check it?
Code:#include <sstream>
int main()
{
int a, b;
std::stringstream my ("1 2 3 4 5");
my >> a >> b;
return 0;
}
i could have checked that but i couldnt compile b4