Not quite the solution, but what you should hear at this point:
Aside from tools and functions that already exist, when you encounter about any problem, begin with this: How do you yourself do it? What steps do you process in your mind to get from some symbols on a paper to concepts such as points? If you met somebody who has totally no idea how to read this, how would you explain it to him?
Also, think in sub-problems. Maybe start about a way to transform something like (8,1) into a point and then connect things. Don't be afraid to write dozens of separate functions that transform one thing into the other. Use functions that don't exist and then write them. Here is some code that might help you learn:
struct Point;
void remove_symbol(string& input, const char symbol);
Point parse_point(const string& input); //"(8,1)" -> Point on that coordinates
vector<string> delimit_by(const string& input, const char delimiter);
Didn't provide implementations on purpose - try to write all of them and ask again if it does not work out. Some basic hints, even if this is maybe not the most elegant code: You can iterate over the content of an integer by string::length()
and the []-operator as with an array, and you can append things to a string by += (unelegant since costly, but easy for the start).
(There always might be direct ways to do those things using the STL, but writing them by yourself gives you some experience at the beginning, plus you can't know all of the STL. Just make sure to learn more about the STL in the long run.)