Here is a snippet of my code as this is my final and would hate for anyone to find this and copy my final that I am working hard on. Everything else is working and is good. My problem is trying to get the following code to display.
void Employee::Calculate (Employee employee1, Employee employee2, Employee employee3)
{
totalSalary = employee1.ePay + employee2.ePay + employee3.ePay;
totalHours = employee1.eHours + employee2.eHours + employee3.eHours;
totalOvertimeHours = employee1.eOvertimeHours + employee2.eOvertimeHours + employee3.eOvertimeHours;
cout << "*************************************************\n";
cout << "**************EMPLOYEE SUMMARY DATA**************\n";
cout << "*************************************************\n";
cout << "**Total Employee Salaries .............." << totalSalary << "**\n";
cout << "**Total Employee Hours .................." << totalHours << "**\n";
cout << "**Total Overtime Hours ................." << totalOvertimeHours << "**\n\n";
}
I have tried
Calculate();
Employee::Calculate;
I have looked at other examples that I could find and every code looks way different. How would I go about printing this part out?