You can't have an IF, ELSE, ELSE. You can have an IF, ELSE IF, ELSE.
Printable View
You can't have an IF, ELSE, ELSE. You can have an IF, ELSE IF, ELSE.
Also, this code:
is not what you want. You want a { after the FOR spec.Code:for (walker = i + 1; walker <= last; walker++)
fcmp = strcmp(student[walker].fName, student[smallest].fName);
Okay, I think starvinmarvin got it to work. Thanks for the help, everyone!:p