Quicksort problem

Results 1 to 2 of 2

Thread: Quicksort problem

  1. #1
    Neils Guest

    Default Quicksort problem

    I&#039m using the QuickSort implementation from 4guys to sort an array of strings like this (printers is the array):<BR><BR>l = lbound(printers)<BR>h = ubound(printers)<BR>call QuickSort(printers, l, h)<BR><BR>The problem is that it never sorts the last item of the array. I found the QuickSort code at<BR>http://www.4guysfromrolla.com/webtech/012799-2.shtml<BR><BR>Any ideas?

  2. #2
    Join Date
    Dec 1969

    Default RE: Quicksort problem

    add 1 to ubound. <BR>if necessary, redim your array one bigger and then add 1 to the last actual item.<BR><BR>hokie, but should work.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts