看看哪里错了-->Eastsun转移
本人是想输入十个数按从小到大输出
#include<iostream.h>
void main()
{
cout<<"put into ten numbers";
int A[10],key;
for(int e=0;e<=10;e++);
cin>>A[e];
for(int i=0,j=1;j<=10;j++,i++);
{
key=A[i];
if A[j]>key&&i>0;
{
A[i+1]=A[i];i=i-1;
}
A[i+1]=key;
}
for(i=0;i<10;i++);
cout<<A[i];
}