I have a string of numbers in the form of

1.31
1.56
1.232
0.1245
...

I am thinking if there is any way i can convert this string into an array of number, then i can do other stuff like multiply on it.

I've tried stod, however, it only converts the first number into a double, while i want all the numbers in this string.

Anyone have any suggestion?