Prototype errors

I am having difficulty getting my overtime pay program to compile and run properly. Any advice would be greatly appreciate. Here is the existing code I have so far:

#include <iostream>
#include <string>
#include <iomanip>

using namespace std;

//Class declaration section
class EmployeeClass
{ // begin EmployeeClass
public: // set to public
void ImplementCalculations(string EmployeeName, double hours, double wage);
void DisplayEmployInformation(void);
void Addsomethingup(void);
// declare variables
string EmployeeName;
int hours, overtime_hours, iTotal_hours, iTotal_OvertimeHours;
float wage, basepay, overtime_pay, overtime_extra, iTotal_salaries, iIndividualSalary;
}; // end EmployeeClass

int main()
// begin main function
{ system("cls");

// display welcome information
cout << "Datamax, Inc.";
cout << "\nWelcome to the Employee Pay Center\n\n" ;

EmployeeClass Employ[3];
const int numEmployees = sizeof(Employ) / sizeof(Employ[0]);
for (int i = 0; i < numEmployees; ++i ) // create loop to collect employee information
{
cout << "\n\nEnter the employee name = ";
cin >> Employ[i].EmployeeName;
cout << "Enter the hours worked = ";
cin >> Employ[i].hours;
cout << "Enter his or her hourly wage = ";
cin >> Employ[i].wage;
}

for (int i = 0; i < numEmployees; ++i )
Employ[i].ImplementCalculations(Employ[i].EmployeeName, Employ[i].hours, Employ[i].wage);
} // end main function

void EmployeeClass::ImplementCalculations (string EmployeeName, int hours, double wage)
{

basepay = 0.0;
overtime_hours = 0;
overtime_pay = 0.0;
overtime_extra = 0.0;
iIndividualSalary = 0.0;

if (hours > 40) // calculate overtime if hours greater than 40
{

basepay = (40 * wage);
overtime_hours = hours - 40;
overtime_pay = wage * 1.5;
overtime_extra = overtime_hours * overtime_pay;
iIndividualSalary = (overtime_extra + basepay);

DisplayEmployInformation ();
}
else // basic calculations without overtime if hours less than 40
{
basepay = hours * wage;
iIndividualSalary = basepay;


DisplayEmployInformation ();

}

}

void EmployeeClass::DisplayEmployInformation (EmployeeClass Employ1, EmployeeClass Employ2, EmployeeClass Employ3)
{ // begin DisplayEmployeeInformation

cout << "\n\n";
cout << "Employee Name ............. = " << EmployeeName << endl; // displays employee name
cout << "Base Pay .................. = $" << basepay << endl; // displays base pay
cout << "Hours in Overtime ......... = " << overtime_hours << endl; // displays overtime hours
cout << "Overtime Pay Amout......... = $" << overtime_extra << endl; // displays overtime income
cout << "Total Pay ................. = $" << iIndividualSalary << endl; // displays total pay

Addsomethingup();

} // end DisplayEmployeeInformation

void EmployeeClass::Addsomethingup (){

iTotal_salaries = 0;
iTotal_hours = 0;
iTotal_OvertimeHours = 0;


for (int i = 0; i < numEmployees; ++i )


cout << "\n\n";
cout << "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%" << endl;
cout << "%%%% EMPLOYEE SUMMARY DATA%%%%%%%%%%%%%%%%%%%%%%%" << endl;
cout << "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%" << endl;
cout << "%%%% Total Employee Salaries ..... =" << iTotal_salaries << endl;
cout << "%%%% Total Employee Hours ........ =" << iTotal_hours << endl;
cout << "%%%% Total Overtime Hours......... =" << iTotal_OvertimeHours << endl;
cout << "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%" << endl;
cout << "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%" << endl;

system("PAUSE");
return;

} // End of function
Here is a list of compiler errors I am getting:

Line 50 - prototype for 'void EmployeeClass::ImplementCalculations(std::string, int, double)' does not match any in class 'EmployeeClass'

Line 16 - void EmployeeClass::ImplementCalculations(std::string, double, double)

Line 82 - prototype for 'void EmployeeClass::DisplayEmployInformation(EmployeeClass, EmployeeClass, EmployeeClass)' does not match any in class 'EmployeeClass'

Line 17 - void EmployeeClass::DisplayEmployInformation()
In member function 'void EmployeeClass::Addsomethingup()':

Line 201 - 'numEmployees' undeclared (first use this function)
(Each undeclared identifier is reported only once for each function is appears in.)

I need the program to display the employee name, base pay, overtime hours, overtime pay, and total pay for each of the three employees.

I then need it to display the total salaries, hours, and overtime hours for all three employees added together.

I apologize for being a bit vague in my initial post but I haven't came to a forum for help before. Thanks!
[code] "Please use code tags" [/code]

1
2
void DisplayEmployInformation(void); //declaration (receives nothing)
void EmployeeClass::DisplayEmployInformation (EmployeeClass Employ1, EmployeeClass Employ2, EmployeeClass Employ3) //definition (receives 3 employee) 
The prototypes must match
Topic archived. No new replies allowed.