list利用迭代器迭代
来源:互联网 发布:网络活动论坛 编辑:程序博客网 时间:2024/06/08 15:10
#include <list>
#include <iostream>
using namespace std;
void main(void)
{
list<int> name;
list<int>::iterator itr;
for(int i=1;i<=10;i++)
{
name.push_back(i);
}
for(itr = name.begin(); itr != name.end(); itr++)
{
cout << *itr << endl;
}
system("pause");
}
#include <iostream>
using namespace std;
void main(void)
{
list<int> name;
list<int>::iterator itr;
for(int i=1;i<=10;i++)
{
name.push_back(i);
}
for(itr = name.begin(); itr != name.end(); itr++)
{
cout << *itr << endl;
}
system("pause");
}
0 0
- list利用迭代器迭代
- JAVA_利用流克隆List
- Intent 传递 List 利用Serializable
- Intent 传递 List 利用Serializable
- list利用sort进行排序
- 利用list来合并数据
- 利用List的subList方法,实现对List分页
- 利用List构造多维数组的误区
- struts2:利用标签显示List嵌套Map
- ABAP:利用SAP定时器自动刷新LIST
- 利用list快速的模糊搜索
- 利用List动态创建多个计时器
- android Intent 传递 List 利用Serializable
- android Intent 传递 List 利用Serializable
- 利用List来实现动态的数组。
- ABAP:利用SAP定时器自动刷新LIST
- android Intent 传递 List 利用Serializable
- java中Vector,ArrayList,List利用分析
- select、poll、epoll之间的区别总结[整理]
- 倒闸操作
- android 使用Tabhost 发生could not create tab content because could not find view with id 错...
- Eclipse中LogCat不刷新怎么办
- iOS 73 (Dev) 问题解决:UIViewController之间push操作时,iOS7中NavBar右侧有一块暗色出现
- list利用迭代器迭代
- php 换行符 PHP_EOL
- ctags 的使用
- 管道编程
- 链表
- Spring MVC
- lamp 安装
- exploring expect
- 网站如何选择合适空间?