Help Please
Type: Posts; User: WranglerYJ
Help Please
So inside of the function i created (well you did)
void printFemale(Employee s[], int num) {
int i;
Employee empList[1] = {{"F"}};
printf( "The Female Employees...
So you created an array that contains an "F", and then I can use that to check it against s[i].sex[0]? would i use strcmp. Brand new to programming so I'm sorry if I don't make myself clear. Really...
Something wrong with the parameters of the call? I thought it was supposed to be the structure and the then the integer in the call, but when I try Employee[] it says type not allowed and I have...
Any ideas?
I tried that before, the if statement which is
void printFemale(Employee s[], int num) {
int i;
printf( "The Female Employees Are\n");
for( i = 0; i < num; ++i )
I am currently writing a function that checks whether a character string contains an "F" or "M". I have tried strcmp() and a if statement. Here is the code I have tried, any help would be much...