Wonderland of C++

不要做一个浮躁的人

  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  13 随笔 :: 1 文章 :: 0 评论 :: 0 Trackbacks
#include "stdafx.h"
#include 
<iostream>
#include 
<vector>   
using   namespace std;   


void   vect(vector<int>   &ve)   
{   
          ve.push_back(
100);   
}
   
    
void   main()   
{   
          vector
<int>   v;   
          vect(v);
          
for (vector<int>::iterator it = v.begin();it != v.end();++it)
          cout
<<*it<<endl;}

          cin.
get();
}


Robert Su 2008-10-10 11:10 发表评论

文章来源:http://www.blogjava.net/babymouse/archive/2008/10/10/233536.html
posted on 2008-10-10 11:10 Robert.Su 阅读(1828) 评论(0)  编辑 收藏 引用

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理