Let's say we have a C-style string in C ++ in the format [4 letters] [number] [number] ... For example, a line might look like this:
abcd 1234 -6242 1212
It should be noted that there are expected to be too many spaces in the line (as shown above).
How can I extract these three numbers and store them in an array?
source share