Chinaunix首页 | 论坛 | 博客
  • 博客访问: 20302
  • 博文数量: 14
  • 博客积分: 433
  • 博客等级: 下士
  • 技术积分: 145
  • 用 户 组: 普通用户
  • 注册时间: 2012-02-16 23:07
文章分类

全部博文(14)

文章存档

2012年(14)

最近访客

分类: C/C++

2012-03-11 22:48:29


点击(此处)折叠或打开

  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4. int main()
  5. {
  6.     vector<int> hole;
  7.     for(int i=0;i<10;i++)
  8.         hole.push_back(i);
  9.     //!for(int j=0;j<10;j++)
  10.         //!cout<<hole.pop_back()<<endl;
  11.     for(vector<int>::iterator it = hole.begin();it!=hole.end();it++)
  12.         cout<<*it<<'\n';
  13.     //hole.pop_back();
  14. }

阅读(283) | 评论(0) | 转发(0) |
0

上一篇:C++流类

下一篇:c++ set<int>::iterator j

给主人留下些什么吧!~~