用STL实现的排序
来源:互联网 发布:汽配数据服务商 编辑:程序博客网 时间:2024/06/03 15:37
// Sort.cpp : Defines the entry point for the console application.////用STL实现的排序#include "stdafx.h"#include <iostream>#include <vector>#include <algorithm>using namespace std;int main(){int n;while(cin>>n && n>=1&&n<=100){vector<int> ivec;int itemp;for(int i=0; i<n; i++){cin>>itemp;ivec.push_back(itemp);}sort(ivec.begin(),ivec.end());for(vector<int>::iterator j=ivec.begin(); j!=ivec.end(); ++j){cout<<*j<<' ';}cout<<endl;}return 0;}
- 用STL实现的排序
- stl的排序 和 用算法实现的排序比较
- 拓扑排序的STL实现
- STL Sort排序的实现
- 关于桶排序算法的STL实现
- STL中插入排序的实现
- STL学习之插入排序的STL实现
- 在STL中,map按值来排序的实现方法
- 使用stl实现快速排序
- stl的list排序
- STL 容器的排序
- C++STL 编程技巧1 STL中各种排序算法的实现
- 拓扑排序——用C++中STL实现
- STL的Sort排序(1)
- STL对对象的排序
- STL排序算法的分析
- C++中STL List排序实现
- c++手动和STL实现堆排序
- 面向对象
- 新安装的ubuntu需要下载的东西
- Android简单实现猜拳游戏
- WCF 无法返回JSON 数据类型
- 最常用的9款免费开源游戏引擎
- 用STL实现的排序
- NOI2010——能量采集(数论)
- 计算大数n!
- Java Spring C3P0心得
- 经典全排列算法
- Drools 使用心得
- image bilinear and bicubic interpolation algorithm
- 【练习03】 KMP 1005 剪花布条
- redhat 下安装jdk 配置