-
Selection Sort
I seriously need help with writing a program to do selection sort as a indirect sort. Read in 25 names and print them out with a heading, sort indirectly and print sorted list with heading. If you can assist me with this it would very appreciated. Thank You.
-
Homework?
Did you make an attempt at it yet?
-
Look at the array
4 3 4 2 1 2 4 5 6 7
All you need to do is find the smallest value of
3 4 2 1 2 4 5 6 7 and then swap that with 4
Then find the smallest value of 4 2 1 2 4 5 6 7 and swap
that with 3. You continue doing this until the array is totaly
sorted.
-
ya, I have no doubt this is homework. Gotta try it first. Get some code up here to show you've done something on your own and you'll get people to help.