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