GUI Qt4 编程,书中的spreadsheet例子解答

2025-03-01 18:27:33
推荐回答(1个)
回答1:

static void(int[]group)
{
int temp;
int pos=0;
for(int i=0;i< group.Length-1;i++)
{
pos=i;
for(intj=i+1;j {
if(group[j] {
pos=j;
}
}//第i个数与最小的数group[pos]交换
temp=group[i];
group[i]=group[pos];
group[pos]=temp;
}
}