第12题
来源:互联网 发布:69圣战 知乎 编辑:程序博客网 时间:2024/06/05 09:57
#include <iostream>#include <string>using namespace std;int main(){string x[5],t;int n;for(int i=0;i<5;i++){cin>>x[i];}for(int i=0;i<5;i++){for(int j=i+1;j<5;j++){if(x[i]>x[j]){t=x[i];x[i]=x[j];x[j]=t;}}}for(int i=0;i<5;i++) cout<<x[i]<<endl;return 0;}
0 0
- 第1章 第12题
- 第3章 第12题
- P51 第12题
- 第一章第12题
- P51第12题
- P51第12题
- p51 第12题
- 第12题
- 第12题
- 第12题
- 第12题
- 第12题
- c++第12题
- 第12题
- lintcode 第12题
- 第12周“知原理”第5题
- 第12章课后第5题答案
- leetcode 第11-12题
- C/C++学习笔记(三)
- 拥抱变化
- typedef
- PL/SQL 批量操作
- 关于搭建SPRING MVC环境时的几点问题
- 第12题
- The Solar System
- 最常见的 20 个 jQuery 面试问题及答案
- Android 编程下判断当前设备是手机还是平板
- POJ3295 Tautology (遞歸+構造)
- STL运用集合!(vector,map,list and so on)!!
- php常用正则
- 第六周项目6:复数模版类
- web.xml的详细讲解