【发布时间】:2018-12-29 10:05:49
【问题描述】:
谁能告诉我这个程序为什么会崩溃? 基本上我是在尝试创建一个数组向量?
#include <iostream>
#include <stdio.h>
#include <vector>
using namespace std;
int main() {
vector <int> arr[100];
arr[0][0] =5;
printf("%d",arr[0][0]);
return 0;
}
【问题讨论】: