Answered step by step
Verified Expert Solution
Link Copied!

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:

image text in transcribed

and the error message I receive is this:

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Oracle8I Building Efficient Databases

Authors: Jonathan Lewis

1st Edition

0201715848, 978-0201715842

More Books

Students also viewed these Databases questions

Question

Why are incandescent bulbs typically made of very thin glass?

Answered: 1 week ago

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago