c++ list_iterator demo
2024-08-27 21:50:34
#include <iostream>
#include <list>
using namespace std; typedef list<int> IntegerList;
int main()
{
IntegerList intList;
for (int i = 1; i <= 10; ++i)
intList.push_back(i * 2);
for (IntegerList::const_iterator ci = intList.begin(); ci != intList.end(); ++ci)
cout << *ci << " " << endl;
return 0;
}
遍历器对各种运算符进行重载
最新文章
- 消耗战 bzoj 2286
- linux中的基础正则表达式
- JSP 相关试题(二)
- Effective c++ 小结
- 车牌识别--S5PV210測试
- HDU 5656 CA Loves GCD (数论DP)
- Python的文件与文件夹操作
- HTML5 格式化、样式、链接、表格
- IE低版本下实现html5的placeholder(表单提示)功能
- QML中的ExclusiveGroup
- iOS集成友盟推送
- pymongo 操作
- Linux上静态库和动态库的编译和使用
- Integer与int的区别(转)
- 《Python》进程收尾线程初识
- [Android] 使用ViewPager 实现导航
- day 69crm(6) stark组件 action 和 多层过滤效果
- C++编译器符号表有哪些内容?
- [图解tensorflow源码] Session::Run()流程图 (单机版)
- CF373C-Counting Kangaroos is Fun