would this work, stringstream(a,b)>> c >> d;
allowing you to do multiple at once?
This is a discussion on string stream question within the C++ Programming forums, part of the General Programming Boards category; 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; }
If I have eight hours for cutting wood, I spend six sharpening my axe.
i could have checked that but i couldnt compile b4