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