【文件属性】:
文件名称:c语言中各种排序方法
文件大小:5KB
文件格式:CPP
更新时间:2018-01-19 03:06:04
排序
阐明了c语言中各种排序方法
#include
#include
#include
#define MAX 2000 // 元素个数
#define NUM_MAX 100000 // 随机数的最大值+1
int b[2000];
int Partition(int a[],int n,int low,int high)//快速寻找分界点
{
int pivotkey,t;
pivotkey=a[low];
while (low=pivotkey)
high--;
t=a[low];
a[low]=a[high];
a[high]=t;
while (low
立即下载