第12题
2015-04-07 17:45
120 查看
#include<iostream> #include"string" using namespace std; int main() { string str[5],temp; for(int a=0;a<5;a++) { cin>>str[a]; } for(int i=0;i<4;i++) for(int j=0;j<4-i;j++) if(str[j]>str[j+1]) { temp=str[j]; str[j]=str[j+1]; str[j+1]=temp; } for(int a=0;a<5;a++) cout<<str[a]<<' '; return 0; }
相关文章推荐
- 新概念英语4册第12课
- 第12课 数据与通信之WebClient
- java 第12课
- 韩顺平_php从入门到精通_视频教程_第12讲_通配符选择器_父子选择器_学习笔记_源代码图解_PPT文档整理
- WPF 专业编程指南 (作者:李应保) 第12 章例子 <研究窗口生命周期>
- 2014第12周三开发问题记
- leetcode第12题--Integer to Roman
- 2015第12周一
- 第二章第12题
- 第12项目3-日期时间类
- VBA 第12课 插入排序
- MIT算法导论-第12讲-最小生成树-Kruskal算法+并查集
- 第12课:Spark Streaming源码解读之Executor容错安全性
- 第12课第5节 字符设备驱动程序之poll机制
- 根据表结构自动生成JavaBean,史上最强最专业的表结构转JavaBean的工具(第12版)
- BEGINNING SHAREPOINT® 2013 DEVELOPMENT 第12章节--SP 2013中远程Event Receivers
- 数据结构 第12讲 二叉树的层次遍历
- 第5章 数组 第12题
- expression web 视频教程第12-15讲:css 定位 布局 列表 表格
- 部署Vista – 第12部分:理解基于映像的部署