使用数组对vector进行初始化

来源:互联网 发布:vb编写程序 编辑:程序博客网 时间:2024/05/17 23:09
int array[10]={...}; 
vector<int> text(array,array+10); //用array对vector进行初始化;
0 0