Thread: Does anyone have a .....

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    19

    Does anyone have a .....

    copy of selsort (selection sort) that can be used with strings all i have is one for ints. Or how do i make one?

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,876
    Just change the test with int's to a call to strcmp and for the swap use strcpy.

    -Prelude
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed