STL
来源:互联网 发布:yum安装的mysql在哪里 编辑:程序博客网 时间:2024/06/05 01:12
// Demonstrating input and output with iterators.#include <iostream>#include <iterator> // ostream_iterator and isstream_iteratorusing namespace std;int main(){ cout << "Enter two integer: "; // create istream_iterator for reading int values from cin istream_iterator< int > inputInt( cin ); int number1 = *inputInt; // read int from standard input ++inputInt; // move iterator to next input value int number2 = *inputInt; // read int from standard input // create ostream_iterator for writing int values to cout ostream_iterator< int > outputInt( cout ); cout << "The sum is: "; *outputInt = number1 + number2; // output result to cout cout << endl;}
0 0
- stl
- stl
- STL
- STL
- STL
- STL
- STL
- STL
- STL
- stl
- STL
- STL
- STL
- STL
- STL
- STL
- STL
- STL
- Hadoop(最新版ChainMapper链接MapReduce作业带原理分析)
- 使用NSURLConnection实现大文件断点下载
- Gulp帮你自动搞定coffee和scss的compile
- HDU 4415 Assassin's Creed(贪心)
- 那些年
- STL
- 如何快速地在上千台服务器上部署一项服务
- 最后的约定
- UVALive - 3353 Optimal Bus Route Design(二分图最佳匹配)
- See LCS again 最长递增子序列到最长公共子序列的转化
- poj 1273
- 到csnd的第一篇博客,记录一个菜鸟程序员的成长历程。
- java I/O
- Hbuilder开发app实战-识岁04-七牛云上传文件的js实现