i keep getting an error saying
error: no instance of overloaded function "getline" matches argument"
and when i take out "getline(is, purchase.price,'\t');
getline(is, purchase.quantity,'\t');" it works fine
1. Try to use code blocks when pasting/writing code in this forum. It's done with the <> button next to the window where you write posts.
2. This is not a windows programming issue. You should've posted in in the beginners or general C++ section.
To answer your question the parameter you can pass to getstring are:
istream object on which the extraction operation is performed. str
string object where the extracted content is stored. delim
The delimiting character. The operation of extracting successive characters is stopped when this character is read.
Your members double price and double quantity are of type double. Not of type string