You are viewing a single comment's thread. Return to all comments →
vector<int> parseInts(string str) { char ch; int next_int; stringstream ss(str); vector<int> integers = vector<int>(); ss >> next_int; integers.push_back(next_int); while (ss >> ch) { ss >> next_int; integers.push_back(next_int); } return integers; }
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 →