You can't have an IF, ELSE, ELSE. You can have an IF, ELSE IF, ELSE.
You can't have an IF, ELSE, ELSE. You can have an IF, ELSE IF, ELSE.
Mainframe assembler programmer by trade. C coder when I can.
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);
Mainframe assembler programmer by trade. C coder when I can.
Okay, I think starvinmarvin got it to work. Thanks for the help, everyone!