We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
So, I wrote this code and this works too, though I still have a doubt: in the for loop where I do v.push_back(a), how does the code know where to begin parsing stringstream ss. I mean it could just keep on parsing the first integer and the first character.
StringStream
You are viewing a single comment's thread. Return to all comments →
So, I wrote this code and this works too, though I still have a doubt: in the for loop where I do v.push_back(a), how does the code know where to begin parsing stringstream ss. I mean it could just keep on parsing the first integer and the first character.
Can somebody please explain this?
by vector v the element is inserted that is pushback of a.