题目内容

#include#define N 10using namespace std;int main(){int i,j,temp,a[N];cout<<"请输入十个整数:"<>a[i];for(i=0;i< ① ;i++)for(j=0;j<② ;j++)if(③){temp=a[j];④ ;a[j+1]=temp;}cout<<"数组排序以后的结果为:"<a[j+1]a[j]=a[j+1]a[j+1]=a[j]

查看答案
更多问题

#include#define N 10using namespace std;int main(){int i,j,temp,a[N];cout<<"请输入十个整数:"<>a[i];for(i=0;i< ① ;i++)for(j=② ;ja[j]a[j]

#include#define N 10using namespace std;int main(){int i,j,temp,k,a[N];cout<<"请输入十个整数:"<>a[i];for(i=0;ia[j]a[i]>a[j]k

#include#define N 10using namespace std;int main(){int i,j,a[N],b;for(i=0;i<① ;i++)cin>>a[i];cin>>b;i=0;while(②)i++;for(j=N-1; ③ ;j--)a[j]=a[j-1];④ ;for(i=0;ia[i]bij>=ij<=ia[i+1]=ba[i]=bb=a[i]

#include#define N 10using namespace std;int main(){int i,a[N],b;for(i=0;i>a[i];cin>>b;for(i=0;iN-1i>=N-1i

答案查题题库