I changed finish * 5 to finish * 4.
I also added a shared counter to the QuickSort sub, and listed the number of iterations after Sorted OK.
I changed the print display to show reverse color for the part of the array that was already sorted while it's being monitored, and the remaining unsorted part in the original white on black. All numbers that are still out of order are colored cyan. When sorting is completed (or user did not select M to monitor), array is shown in yellow on black.
This message has been edited by Solitaire1 on Apr 24, 2006 7:00 PM This message has been edited by Solitaire1 on Apr 24, 2006 6:29 PM This message has been edited by Solitaire1 on Apr 24, 2006 5:50 PM
|
|