I am a novice c++ user - I had to write the functions for this program but the professor wrote the class, the main content and the last print function (all of which I am not supposed to edit esp. the class) - everytime I create a new employee, it accumulates the previous record's amounts - what am i doing wrong? thanks!
"...everytime I create a new employee, it accumulates the previous record's amounts - what am i doing wrong?..."
At line 231 (Employee worker;) you create a new Employee, then in while loop you access the member functions of this object, you don't actualy create any new Employees. You could move the 'Employee worker;' line to just inside the while loop.