There are many options of csv to vector, including read a csv file and and add its all data into vector in c++ however I want to something a bit above or below csv -> vector. Instead, I have a CURL function that loads csv data into a std::string in the format of
col1,col2,col3
abc,2,ghi
jkl,2,pqr
which, each row is separated by \n. How can I parse data in this given structure into a std::vector<data>
Where data would look something like
struct data
{
std::string col1, col3;
int col2;
};