十五周项目2 洗牌
来源:互联网 发布:淘宝产品模板 编辑:程序博客网 时间:2024/05/21 13:43
- /*
- *Copyright (c) 2016,烟台大学计算机学院
- *All rights reserved.
- *文件名称:zwj.cpp
- *作 者:李落才
- *完成日期:2016年6月5日
- *版 本 号:v1.0
- *
- *问题描述:
- *输入描述:
- *程序输出:
- */
- #include <ctime>
- #include <vector>
- #include <iterator>
- #include <algorithm>
- #include <iostream>
- using namespace std;
- int main()
- {
- ostream_iterator <int> os(cout," ");
- srand(time(NULL));
- vector<int> vs;
- for(int i=1;i<55;i++)
- {
- vs.push_back(i);
- }
- copy(vs.begin(),vs.end(),os);
- cout<<endl;
- cout<<endl;
- cout<<"*********************洗牌************************"<<endl;
- random_shuffle(vs.begin(),vs.end());
- copy(vs.begin(),vs.end(),os);
- cout<<endl;
- return 0;
- }
0 0
- 十五周项目2 洗牌
- 第十五周项目2-洗牌
- 第十五周项目2洗牌
- 第十五周项目2:洗牌
- 第十五周项目-项目2-洗牌
- 十五周项目2
- 第十五周项目2—洗牌
- 第十五周实践项目2-洗牌
- 第15周项目2:洗牌
- 第15周项目2:洗牌
- 第15周-项目2-洗牌
- 第15周项目2--洗牌
- 第15周项目2-洗牌
- 第15周 项目2---洗牌
- 第十五周项目2——洗牌
- 第15周项目 2—洗牌
- 第十五周项目2—洗牌
- 第十五周上机实践项目2:洗牌
- ijkplayer ffmpeg android独立编译
- 信号量解决读写者问题
- Ibatis中#与$的区别?
- C++第七次作业
- 为什么Maven会更改Eclipse JDK设置
- 十五周项目2 洗牌
- 第11期 《技术之路,越走越远》 2016年6月刊
- C++作业7
- PHP PDO prepare()、execute()和bindParam()方法详解
- 倘若我们不再联系,不久之后就会把彼此忘记
- Java线程编程(1)
- c++第七次实验——特殊的三位数
- 使用 Android Studio自定义View04——视频音量调控
- ORA-01033解决方法