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