int* sort(int a[],int length)
{
     
int k=length-1,j,kk,temp;  //k为最后一次调换的位置,kk为临时计数器
     while(k>0)
     
{
          kk
=0;
          
for(j=0;j<k;j++)
         
{
               
if(a[j]>a[j+1])
              
{
                   temp
=a[j];
                   a[j]
=a[j+1];
                   a[j
+1]=temp;
                   kk
=j;
              }

         }

         k
=kk;
     }

     
return a;
}