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 the total running sales of Candy, Decorations, and Costumes. I'm not sure where I went wrong here.
Doing so by entering sales (choice 1) first which that'll create the file and appending the sales to the file. Then run the program again to enter the menu choice 2 of tallying the sales for the day. As you can see, it only reflect the 0.00 instead of 139.99 (for example).
So, I'm assuming it can't read from the text file or something. Hope I'm clear... I'm using g++ compiler to run the program.
Code:edit: remove code - personal reason