Vector

来源:互联网 发布:.top域名为什么便宜 编辑:程序博客网 时间:2024/06/06 20:03
#include<iostream>#include<Vector>using namespace std;int main(){Vector<int> first;Vector<int> second(4,100);//100 100 100 100Vector<int> third(second.first(),second.end()); //100 100 100 100Vector<int> four(third);//100 100 100 100int fiveArray[]={1,2,3,4};Vector<int>five(fiveArray,fiveArray+sizeof()/sizeof(int));//1 2 3 4return 0;}
原创粉丝点击