When I am using string stream twice it does not
accept the value second time
weird thing is same does work if the string passed before contains a space
Note L12. a stringstream is a stream so it has the same states of eof, bad, fail etc. If the stream is not good, then the state has to be reset the same as you would with a file stream.
aaaaa bbbbb
The second example works because the extraction doesn't set eof the way the first example does.