I'm trying to read in a .csv file that looks like this:
Name,N1,N2,N3,N4, ...
A,2,1,50,5, ...
B,5,2,-90,7, ...
C,7,3,0.4,9, ...
...
where columns are more than 500 column.
I want to read every row into a pair Vector consisting of:
1- Name
2- Vector containing the rest of the columns (N1..Nn)
It would look something like this vector<pair<string, vector<double>>>
but I'm not sure how to read the data into this format.
thank you