// FILE: RdEmpDrv.cpp // DRIVER FOR FUNCTION "read_employee" #include #include "apstring.h" #include "money.h" #include "employee.h" #include "ReadEmp.cpp" // Functions Used... // PRINTS THE EMPLOYEE STATISTICS // (Not included in the text) void print_stat (employee); // IN: the structure variable to be displayed // Driver (not included in the text) void main () { // Local Data... employee one_employee; read_employee(one_employee); print_stat (one_employee); } // PRINTS THE EMPLOYEE STATISTICS // (Not included in the text) void print_stat (employee one_employee) // IN: the structure variable to be displayed // Pre: The members of the struct variable one_employee are // assigned values. // Post: Each member of one_employee is displayed. { cout << endl; cout << "Employee stats for " << one_employee.name << ": " << endl; cout << "Id : " << one_employee.id << endl; cout << "Gender : " << one_employee.gender << endl; cout << "Number of dependants : " << one_employee.num_depend << endl; cout << "Hourly rate : " << one_employee.rate << endl; } // end print_stat