数据结构 直接排序,有错误,应该怎么改,急

```int Partition(SeqList &L,Student a[],int low,int high)
{
a[0]=a[low];
char pivotkey=a[low].no;
while(low {
while(low=pivotkey) --high;
a[low]=a[high];
while(low<high&&a[low].no<=pivotkey) ++low;
a[high]=a[low];
}
a[low]=a[0];
return low;
}

void QSort(SeqList &L,Student a[],int low,int high)
{
if(low<high){
int pivotloc=Partition(L,a,low,high);
QSort(L,a,low,pivotloc-1);
QSort(L,a,pivotloc+1,high);
}
}
void QuickSort(SeqList &L)
{

Student a[MAXSIZE];//排序专用临时数组
    for(int i=1;i<=L.last;i++) 
        a[i]=L.elem[i];
     QSort(L,a,1,L.last);
     for(i=1;i<L.last;i++)
{
    printf("学号:%s 姓名:%s 成绩:%d\n\n",L.elem[i].no,L.elem[i].name,L.elem[i].price);
}
printf("\n");

}

while(low {
while(low=pivotkey) --high;
代码错乱了

int pivotloc=Partition(L,a,low,high);
这里调试下,分区是否正确

for(int i=1;i<=L.last;i++)
数组下标从0开始

不知道你这个问题是否已经解决, 如果还没有解决的话:

如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^