Course Solutions Uncategorized (Solved) : Need Help Findemp Function Sortemployees Function Code Struct Called Employee Hold Employe Q33249083 . . . .

(Solved) : Need Help Findemp Function Sortemployees Function Code Struct Called Employee Hold Employe Q33249083 . . . .

 

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

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post