QB / QB64 Discussion Forum      Other Subforums, Links and Downloads
 Return to Index  

I edited parts of above QuickSort Display program

April 24 2006 at 5:48 PM
Solitaire  (Login Solitaire1)
S


Response to range = finish * 5 gives overflow error on larger numbers

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


 
 Respond to this message   

Newbies usually go to www.qbasic.com and click on The QBasic Forum
Forum regulars have their own ways, which include The QBasic Community Forums