你这是排序啊……
#include<bits/stdc++.h> using namespace std; int a[10]={0,1,2,3,4,5,6,7,8,9}; int main(){ for(int i=9;i>=0;i--) cout<<a[i]<<' '; return 0; }