nevermind... I figured it out. Thanks for the help! :)
Type: Posts; User: kryz
nevermind... I figured it out. Thanks for the help! :)
did change to ofstream dataFile; and to dataFile.open("sales.txt", ios::out);
which that created error again I mentioned above:
119: error: no match for 'operator>>' in 'dataFile >> line'
121:...
hmm.. I changed that and now it said no match for 'operator<<' in dataFile' ...
Ive tried to remove the code down below in choice 2.
dataFile.open("sales.txt", ios::out | ios::app);
It did the same thing to 0.00. What should it be changed to?
I created a program for fun which its for Halloween. I wasn't able to get it working as comparing strings from text file (its in Choice 2 - if statement). It only returned 0.00 instead of outputting...