would this work, stringstream(a,b)>> c >> d;
allowing you to do multiple at once?
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; }
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler
i could have checked that but i couldnt compile b4