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