Convert string from getline into a number
- by haskellguy
I am trying to create a 2D array with vectors. I have a file that has for each line a set of numbers. So what I did I implemented a split function that every time I have a new number (separated by \t) it splits that and add it to the vector
vector<double> &split(const string &s, char delim, vector<double> &elems) {
…