贤惠雪糕

文章
5
资源
0
加入时间
4年2月16天

动态数组的定义和使用

#include <iostream>#include <vector>    //必要头文件 using namespace std;vector <int> a;    //定义动态数组 int main() { for(int i = 1;i <= 200;i ++) a.push_back(i);    //类似队列的数组元素插入