询问
main(){
int i,a[254],h,p,q,j,s;
a[i]=a[254];
printf("input numbers for cicle's:\n");
scanf("%d",&h);
if(h<i)a[i]=a[h];
printf("input every circle's size:\n");
for(i=h;i>=0;i--)
scanf("%d",a[i]);
for(i=h;i>=0;i--){
p=i;q=a[i];
for(j=i+1;j>=0;j++)
if(q<a[j]){ p=j;q=a[j]; }
if(i!=p)
{s=a[i];
a[i]=a[p];
a[p]=s; }
printf("%d",a[i]);
}
}
怎么输入了SIZE后无法排序呢?