home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / PROG_C / SNPD9404.ZIP / RG_QSORT.C2 < prev    next >
Text File  |  1994-04-03  |  293b  |  17 lines

  1. .I 19 1
  2.       while (n > 1)
  3. .D 20 1
  4. .I 22 1
  5.             for (i = 0, j = n; ; )
  6. .D 23 1
  7. .I 26 1
  8.                   while (v[j] > v[0]);
  9. .D 27 1
  10. .I 29 2
  11.                   while (i < j && v[i] < v[0]);
  12.                   if (i >= j)
  13. .D 30 2
  14. .I 37 1
  15.             if (ln < rn)
  16. .D 38 1
  17.