Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 coutStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started