I NEED HELP WITH THE findEmp() FUNCTION & sortEmployees()FUNCTION
HERE IS WHAT I HAVE FOR MY CODE:
//struct called employee to hold the employees information
//this is the employee structure and the employeesinformation is being called in from a different fileoutisde
struct employee
{
string firstName;
string lastName;
char gender;
double hrRate;
int id;
int age;
};
void readData(employee mA[], employee fA[], int s, int &fi,int &mi)
{
mi = 0;//the index to the male array
fi = 0;//the index to the female array
//decalre the input file
ifstream fin;
//open the input file
fin.open(“employees.dat”);
//if it doesn’t exist, display an error message and terminatethe program
if(!fin)//if(fin == NULL)
{
cout << “Cannot open the input file” << endl;
}
else//it exists, read each employee
PayPal Gateway not configured
PayPal Gateway not configured