很好的程序哦voidcake(intarray[],intN){inti,j,t,c,lastexchange;structstudenttemp;lastexchange=N-1;while(lastexchange){for(i=0,c=0;iarray[i+1]){t=array[i+1];array[i+1]=array[i];array[i]=t;temp=stu[i+1];stu[i+1]=stu[i];stu[i]=temp;c=i+1;}laste