It seems that I'm having trouble reading values into my struct elements...it's probably a beginner's error, easy to fix, but I can't seem to figure it out. Something to do with using 'cin' to read the values? Any help would be appreciated!
The program is for getExpenses to read in values entered by the user. The issue is in lines 26-36(I would think), and the rest is included for context.
In getExpenses you have a reference to a const object so you are not allowed to manipulate any of the members of expense. It should work if you just remove the const.