挡住的字为将排好的数组输出
如果想把a[i]和a[j]调换位置 那就需要添加一个容器t 令想要在前面的位置赋值给t
if(a[i]>a[j])
{
t=a[j];
a[j]=a[i];
a[i]=t;
}
如图就将两个数的位置调换了