阅读程序
来源:互联网 发布:欠淘宝消保 编辑:程序博客网 时间:2024/06/10 09:05
- /*
- *Copyright (c) 2016,烟台大学计算机学院
- *All rights reserved.
- *文件名称:zwj.cpp
- *作 者:李落才
- *完成日期:2016年6月5日
- *版 本 号:v1.0
- *
- *问题描述:阅读程序,对照运行结果,领会STL的用法
- *输入描述:
- *程序输出:
- */
- #include <string>
- #include <set>
- #include <iterator>
- #include <iostream>
- using namespace std;
- int main()
- {
- set <string> strset;
- strset.insert("cantaloupes");
- strset.insert("grapes");
- strset.insert("apple");
- strset.insert("orange");
- strset.insert("banana");
- strset.insert("grapes");
- copy(strset.begin(), strset.end(), ostream_iterator<string>(cout, " "));
- cout << endl;
- return 0;
- }
0 0
- 阅读程序
- 阅读 程序
- 阅读程序
- 阅读程序
- 阅读程序
- 阅读程序
- 阅读程序
- 阅读程序
- 程序阅读
- 阅读程序
- 阅读程序
- 阅读程序
- 阅读程序
- 阅读程序
- 阅读程序
- 阅读程序
- 阅读程序
- 阅读程序
- 设计模式—外观模式
- socket bind详解
- Android中AlertDialog使用
- 【Cocos Creator 实战教程(4)】——黄金矿工(上)(节点动作、碰撞体相关)
- 多态——polymorphism
- 阅读程序
- JavaWeb开发技术——过滤器基础
- 前端开发攻城师绝对不可忽视的五个HTML5新特性
- React Native学习笔记(三)组件生命周期
- python pip加速安装命令
- 哈弗曼编码实现文件压缩和解压缩
- Springmvc基础四之上传文件
- ACM天梯赛练习L1-022. 奇偶分家
- XUtils3.0使用后续