解题思路:
注意事项:
参考代码:
#include<iostream> #include<cstdio> #include<string> #include<cmath> #include<algorithm> #include<climits>//因为使用了SHRT_MAX using namespace std; int main() { int a[10]={0}; for(int i=0;i<10;i++) { cin>>a[i]; } sort(a,a+10); for(int i=9;i>=0;i--) { cout<<a[i]<<" "; } cout<<endl; return 0; }
0.0分
0 人评分
C语言程序设计教程(第三版)课后习题11.1 (C语言代码)浏览:670 |
printf基础练习2 (C语言代码)浏览:592 |
C语言程序设计教程(第三版)课后习题9.1 (Java代码)浏览:473 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:348 |
文科生的悲哀 (C语言代码)浏览:1423 |
A+B for Input-Output Practice (IV) (C语言代码)浏览:501 |
计算质因子 (C语言代码)浏览:720 |
最好的,浏览:581 |
C语言程序设计教程(第三版)课后习题8.1 (C语言代码)浏览:575 |
拆分位数 (C语言代码)浏览:533 |