# include<iostream>
# include<cmath>
# include<complex>
# include <string>
# include<fstream>
using namespace std;
int main ()
{
int mem=0;
int x[5];
x[0]=10;x[1]=26;x[2]=9;x[3]=45;x[4]=24;
for(int t=0;t<5;t++)
{ for(int f=t;f<5;f++)
{
if (x[t]>x[f])
{ mem=x[t];
x[t]=x[f];
x[f]=mem;
}
}
}
cout<<x[0]<<x[1]<<x[2]<<x[3]<<x[4]<<endl;
return 0;
}
从小到大排序的程序 c++
需积分: 47 5 浏览量
2010-08-22
19:45:49
上传
评论
收藏 476KB RAR 举报
anapple2005
- 粉丝: 1
- 资源: 2
最新资源
- 基于MATLAB的钢板表面缺陷检测系统
- MS SQL里生成行政区域县区信息表和相应数据
- delphi实现DBGrid全选和反选功能
- 25C11F41-2B2A-4D1A-AAA8-7C654526B129.pdf
- Android Studio Jellyfish(android-studio-2023.3.1.18-cros.deb)
- MVC+EF框架+EasyUI实现权限管理源码程序
- python第66-75天,Day66-75.rar
- python后端服务project-of-tornado.rar
- python测验,hello-tornado.rar
- 基于SpringBoot+Vue3快速开发平台、自研工作流引擎源码设计.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈