Question: C++ Error: I am getting an error when I try to pass values to a method. I am trying to read data from a .csv
C++ Error:
I am getting an error when I try to pass values to a method. I am trying to read data from a .csv file and then pass them to a method that will stroe them in an array. Since addActivity(string, double) I think the error involves the 2nd parameter not being converted to a double.
The code I have looks like this:

and the error message I receive is this:

void User: : processData(string i iL:NBalli" string actT, actD; ifstream dataFile(fileName) if (dataFile.good))I while(!dataFile.eof()) getline(dataFile, actT,,) getline (dataFile, actD); actD = stodgactD.c-str(),0); addActivity (actT, actD) elset cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
