You are viewing a single comment's thread. Return to all comments →
vector<int> parseInts(string str) { stringstream s(str); vector<int> numbers; int number; char dump; while (s >> number) { s >> dump; numbers.push_back(number); } return numbers; }
Seems like cookies are disabled on this browser, please enable them to open this website
StringStream
You are viewing a single comment's thread. Return to all comments →