copy

#include <stdio.h>
#include
<iostream>
#include
<algorithm>
#include
<vector>

using namespace std;


int main( )
{
int my[]={10,32,324,43,43,2332,3223};
vector
<int>myvector;
vector
<int>::iterator it;
myvector.resize(
7);
copy(my, my
+ 7, myvector.begin());
for( it = myvector.begin( ); it != myvector.end( ); ++it)
cout
<<*it<<" ";
return 0;
}

posted on 2011-07-29 20:21  more think, more gains  阅读(91)  评论(0编辑  收藏  举报

导航