Thread: help needed for sorting nested loops...segmentation error

  1. #16
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Chappell Hill, Texas
    Posts
    2,332
    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.

  2. #17
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Chappell Hill, Texas
    Posts
    2,332
    Also, this code:
    Code:
    for (walker = i + 1; walker <= last; walker++)
            
    
           fcmp = strcmp(student[walker].fName, student[smallest].fName);
    is not what you want. You want a { after the FOR spec.
    Mainframe assembler programmer by trade. C coder when I can.

  3. #18
    Registered User
    Join Date
    Nov 2008
    Posts
    33
    Okay, I think starvinmarvin got it to work. Thanks for the help, everyone!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. An error is driving me nuts!
    By ulillillia in forum C Programming
    Replies: 5
    Last Post: 04-04-2009, 09:15 PM
  2. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 03:07 AM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  4. Problem with Visual C++ Object-Oriented Programming Book.
    By GameGenie in forum C++ Programming
    Replies: 9
    Last Post: 08-29-2005, 11:21 PM
  5. Stupid compiler errors
    By ChrisEacrett in forum C++ Programming
    Replies: 9
    Last Post: 11-30-2003, 05:44 PM