STL algorithm accumulate vector<string> demo
来源:互联网 发布:js显示当前时间 编辑:程序博客网 时间:2024/06/06 02:46
#include <iostream>#include <vector>#include <string>#include <numeric>using namespace std;int main(){vector<string> svec;string word;while (cin >> word) {svec.push_back(word);}string result = accumulate(svec.begin(), svec.end(), string(""));cout << result << endl;getchar();return 0;}
0 0
- STL algorithm accumulate vector<string> demo
- STL accumulate demo
- STL之string,vector,algorithm常用方法
- accumulate, copy, vector::push_back(STL Sample)
- STL algorithm count demo
- STL algorithm find() demo
- STL algorithm count() demo
- accumulate() demo
- STL vector demo
- STL-----------accumulate
- STL:accumulate
- STL accumulate
- STL----vector与string
- stl string和vector
- STL string demo
- STL容器使用DEMO-vector
- Effective STL--2.Vector String
- Effective STL -- vector和string
- STL accumulate demo
- UVA 1342 - That Nice Euler Circuit(计算几何+欧拉定理)
- C语言函数参数传值方式传递
- osg学习第一篇:矩阵
- iOS 开发之常用框架
- STL algorithm accumulate vector<string> demo
- 我的2015计划,目标
- 修改样式表时在某些浏览器(如360)下遇到Cannot read property 'style' of undefined错误的解决方案
- POJ1001 解题报告
- 流媒体服务器实现
- ORACLE数据库—参数文件
- spring 配置hibernate事务处理
- 【Servlet笔记】servlet 代码生成验证码
- linux .o a .so .la .lo的区别