I have a file I am trying to read its parts as a struct. the first part being the name of the Item (a string) and the second part being the price (a double).
my conundrum is I get the string to be read but the double doesn't identify as valid. My question is how do I set it up so the program will read the string and input the double. mainly how do I make line 64 work without screwing up the rest of the program
get(), IIRC, reads a single character from the file which I don't think is what you want. You can read using the extraction operators >> into the double or use getline() to read into a temporary string then convert it to a double.