Hi all,
Given the following data format: { "(1,2), "(2.5, 3.5)", .... }
I would like to define a vector<string> to stored this data:
v[0] = "(1,2)", v[1] = "(2.5, 3.5"), ....
and would like to extract the integer/double string value to real
int/double and use it in computation. What is the best way to do it?
Currently, I am using C routine atoi() and wrote a litter paring
function to extract the int/double value. I would like to know if
there is a better way to do in using STL and maybe its algorithm?
THanks,
Kaede