You are viewing a single comment's thread. Return to all comments →
vector<int> out; stringstream ss(str); string s; while(getline(ss,s,',')) out.push_back(stoi(s)); return out;
This is a bit easier to read
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 →
This is a bit easier to read