Selection sort algorithm using strcmp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gemacjr1201
    New Member
    • Nov 2006
    • 14

    #1

    Selection sort algorithm using strcmp

    I need hints for an algorithm using string compare in a selection sort.
    I will be sorting lastnames and first namesalphbetica lly. if the selection sort encounters the same last name it then goes to first name and alphabetizes the list.

    Smith, John
    Smith, Juan



    THANKS IN ADVANCE!!
  • RedSon
    Recognized Expert Expert
    • Jan 2007
    • 4980

    #2
    Originally posted by gemacjr1201
    I need hints for an algorithm using string compare in a selection sort.
    I will be sorting lastnames and first namesalphbetica lly. if the selection sort encounters the same last name it then goes to first name and alphabetizes the list.

    Smith, John
    Smith, Juan



    THANKS IN ADVANCE!!
    What are you talking about? What kind of hints are you looking for. Its pretty straight forward, use string compare to do a selection sort. Do you know what the algorithm for selection sort looks like? Do you know how to use string compare functions?

    Comment

    Working...