Does anyone have a .....

This is a discussion on Does anyone have a ..... within the C++ Programming forums, part of the General Programming Boards category; copy of selsort (selection sort) that can be used with strings all i have is one for ints. Or how ...

  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,796
    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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21