title: Read a csv file into c++ as a 2D array or vector, and perform calculations on the numbers in the array
body: <p>I have a csv file that has 500 rows and 2 columns, and this file is full of doubles. I want to read this in to c++, and access the values in the array and use them to do calculations. I have tried reading them in as strings then converting stringstream, getline, and lineStream, but the numbers that print out are nowhere close to the ones in the original file. I just want to know if there's a fairly straightforward way to do this that I am just not realizing. I also wouldn't mind a good explanation on what getline() and lineStream() do, as I could be using these incorrectly. Thanks!</p>