sorting strings with selection sort

Thank you!
Last edited on
You accidentally put line 47 after lines 45 and 46.

One way to see how it is failing is to put showArray(array,size); right after line 46 and give it a run. You'll see:

The unsorted values are:
a c b e B f
B c b e B f
B B b e B f
B B B e B f
B B B B B f
B B B B B f
The sorted values are:
B B B B B f

Hope this helps.
Registered users can post here. Sign in or register to post.