You are viewing a single comment's thread. Return to all comments →
I am new to stringstream. I just copied this code from submission.
Can anyone please explain me, what is happening here? Thanks in advance :)
vector<int> parseInts(string str) { stringstream ss(str); //?? vector<int> result; char ch; int tmp; while(ss >> tmp) { //?? result.push_back(tmp); ss >> ch; //?? } return result;
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 →
I am new to stringstream. I just copied this code from submission.
Can anyone please explain me, what is happening here? Thanks in advance :)