I tried to read string from the file and convert it to a vector. But I don't know how to deal with decimal numbers. I also know how to use stod to convert one string decimal number.
Thanks!! Any suggestions?
Input (string, reading from the file): [-1, 2, 25, 3, 2]. (Okay with integers)
For example: [-1, 2.02, 25, 3.03, 2]
(it only outputs -1)