Ask your own question, for FREE!
Computer Science 7 Online
OpenStudy (anonymous):

It's late and my brain is failing. What am I doing wrong in this function? I'm trying to use getline(my professor's demand) to pull lines from an external text file called inventoryData. while (!inventoryData.eof() ) { getline(inventoryData, tempInventory.itemName); getline(inventoryData, tempInventory.quantity); getline(inventoryData, tempInventory.price); location = hashKey(tempInventory.IDCode);

OpenStudy (anonymous):

The error I'm getting during compiling is that there is no matching function for call to 'getline(std::fstream&, double&)'

OpenStudy (anonymous):

I found it. I was trying to use the <string> library's getline, when I needed to use the ofstream function. *facepalm*

OpenStudy (anonymous):

ugh, you are programming. i feel sorry for you.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!