摘要:
void qsort(int v[], int left, int right){ int i, last; void swap(int v[], int i, int j); if (left >= right) return; swap(v, left, (left + right) / 2); /*将划分元素移到*/ last = left; /*v[0]处*/ for (i = left + 1; i <= right; i++) if (v[i] < v[left]) s... 阅读全文