Suppose I have the following char array:
char *word="R12_X8_10";
The number of digits are not fixed but the locations with respect to the non-numeric characters are fixed. How can I extract the numbers without boost? I should get {"12", "8", "10"} by splitting the word.
This is supposed to be an easy task as I have done in Java many times but the in C++ it is taxing my brain.