第十五周项目 补充阅读程序(1)
来源:互联网 发布:现货白银分析软件 编辑:程序博客网 时间:2024/05/18 00:30
/* *Copyright(c) 2016, 烟台大学计算机与控制工程学院 *All rights reserved. *文件名称:main.cpp *作 者:李德坤 *完成日期:2016年6月7日 *版本号:v1.0 * *问题描述:补充阅读(1) *输入描述:无 *输出描述:无 */#include<iostream>#include<vector>#include<iterator>#include<algorithm>using namespace std;int main(){ vector<int> col1; istream_iterator<int> intreader(cin),eof;; while(intreader!=eof) { col1.push_back(*intreader); // (1) ++intreader; // (2) } ostream_iterator<int>intwriter(cout,","); // (3) copy(col1.begin(),col1.end(),intwriter); cout<<endl; copy(col1.begin(),col1.end(),ostream_iterator<int>(cout," | ")); // (4) cout<<endl; return 0;}
0 0
- 第十五周项目 补充阅读程序(1)
- 第十五周项目—程序补充阅读(1)
- 第十五周项目 补充阅读程序(4)
- 第十五周c++范型程序补充阅读(1)
- 第十五周项目 阅读程序(1)
- 第十五周项目1-补充程序
- 第十五周C++范型程序补充阅读(3)
- 第十五周项目二-阅读程序1
- 第十五周项目—阅读程序(1)
- 第十五周项目-阅读程序—1
- 第十五周项目:阅读程序1
- 第十五周项目 阅读程序(2)
- 第十五周项目阅读程序(3)
- 第十五周项目 阅读程序(4)
- 第十五周项目 阅读程序(2)
- 第十五周项目 阅读程序(3)
- 第十五周项目 阅读程序 (5)
- 第十五周项目 阅读程序(6)
- 云智巡在快消品行业的巡检作用
- Python 类的定义、继承及使用对象
- CART回归树对于特征的处理
- Android LayoutInfalter
- (RHCE)1 team/bridge配置
- 第十五周项目 补充阅读程序(1)
- 如何解决jpg格式的图片不能在EDIUS中打开
- Hessian知识学习总结(一)——基础知识
- 并发 并行 同步 异步 阻塞 非阻塞
- 第15周-阅读程序(2)
- Android 动画 - RoateAnimation 旋转动画
- (RHCE)2 DNS服务器搭建
- listview获取不可见的item
- [Android] 解决Volley中JsonObjectRequest的Post请求添加参数的问题