fnquicksort这是什么函数?

来源:百度知道 编辑:UC知道 时间:2024/06/27 15:34:04
fnQuickSort这个是C++里的什么函数?怎么定义的?

快速排序
传入参数有 待排序数组 低位 高位数

void fnQuickSort(int a[],int low, int high)
{
int pos;
if(low < high)
{
pos = fnPartition(a,low,high);
fnQuickSort(a,low,pos-1);
fnQuickSort(a,pos 1,high);
}
}