I have a program that uses a class "Employee" to create 3 employee's with names and salaries. I have a function that calculates the average of the three salaries and outputs to the screen.
Now I need to use an Employee class member function called print to format the same data to the screen.
When I compile I get "request for member print is of a non-aggregate type".
I have attached a zip file with the program (avg_sals.cpp) the Employee class files (employee.cpp and employee.h).
The functions I am using are return_avg and print_avg.
Thanks for any ideas.
Brian