First you have to find out how many comma-separated words are in the string. Iterate through the string and count the commans. Then allocate the int array large enough to hold that many integers. After that, go through the string agsin, this time when you find a comma set one of the integers to be the numeric value of where the comma was found.
For example in the string you posted you will need three integers because the string contains three comma-separated words. The first integer will be 0, the second integer 4 and the 3d integer is 9.
I mean I can set "m_starts;" or even run through a for loop so i leave it open to any number of sizes, but what I DON'T understand is how to then use it to store the starting index of each word in m_str. How do i go about that process??