Hey guys, I don't do a lot of C++ programming so this is starting to drive me a little crazy.
so basically I'm trying to read in 'vending machine data' to an array of "vendingMachine" structs that has a nested "drinks" struct. The text file is as such:
There are six locations, all with five drinks and prices.
I can get the info for the first vending machine in, and after that it doesn't read and I can't figure out why. Thanks for any help. This is the struct definitions:
There will still be a newline on the row 1.00 4 (fifth row of Pine Hills Mall's data) so the next getline() call will read a blank line, after which you'll try and read Maple Woods Library into a double which will put the input stream into an error state.