list
来源:互联网 发布:阿里云学生机续费 编辑:程序博客网 时间:2024/06/05 14:26
include
include
using namespace std;
void nomal()
{
list lis;
list::iterator iter;
lis.push_front(1);
lis.push_front(2);
lis.push_front(3);
lis.push_front(4);
lis.push_front(5);
for(iter = lis.begin(); iter != lis.end();iter ++){
cout << *iter << “\t”;
}
}
void nomal2()
{
list lis;
list::iterator iter;
lis.push_back(1);
lis.push_back(2);
lis.push_back(3);
lis.push_back(4);
lis.push_back(5);
for(iter = lis.begin(); iter != lis.end();iter ++){
cout << *iter << “\t”;
}
}
void nomal3()
{
list lis;
list::reverse_iterator iter;
lis.push_back(1);
lis.push_back(2);
lis.push_back(3);
lis.push_back(4);
lis.push_back(5);
for(iter = lis.rbegin(); iter != lis.rend();iter ++){
cout << *iter << “\t”;
}
}
int main()
{
nomal3();
return 0;
}
- List
- list
- List
- LIST
- list
- list
- List
- list
- list
- List
- list
- LIST
- List
- List
- List
- list
- list
- list
- View加载详解
- CornerStone SVN 管理基本操作
- jquery图表范例及推荐highchart+sparkline
- InfiniBand 技术及其在 Linux 系统中的配置简介
- Android开发必备应用
- list
- LeetCode Reverse Integer
- GB2312简体中文编码表
- cocos2d-x 通过JNI实现c/c++和Android的java层函数互调
- 为什么软件开发周期通常是预期的两三倍?
- shell 处理文本工具集合(常用命令)
- CrapApi从github上获取报错
- map
- Unsupported compiler 'com.apple.compilers.llvmgcc42' selected for architecture 'armv7'