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:

C++ Error: I am getting an error when I try to pass

and the error message I receive is this:

values to a method. I am trying to read data from a

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!