I have a line like this: '123plus43times7'
where the numbers are followed by words from the dictionary.
I understand that I can extract int / numbers using the >> operator:
StringStream >> number
I can get a number. However, Stream still has a number in it. How to delete a number when the length of the number is unknown, or should I find out the length of the number and then use str.substr () to create a new String Stream? Any other best method for this, using C ++ STL String and SStream, would really be appreciated.
Tjain source share