C语言-快速排序算法(递归Hoare版)
废话不多说,先看代码#define _CRT_SECURE_NO_WARNINGS 1//快速排序算法,递归求解#include <stdio.h>void swap(int* a, int* b){ int c = 0; c = *a; *a = *b; *b = c;}void Compare(int arr[], int one, int end){ int first = one;//最左边数组下标 int last = end;//最右边数组下标 i