#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int main(){
vector<int> v;
v = * new vector<int>(20,8);//new返回的同JAVA一样的地址
//这句也可以这么写:vector<int> v (20,8);
vector <int > v2;
v2 = vector<int>(v);
vector<int> :: iterator it = v2.begin();
cout << *it << " " ;
return 0;
}