如何初始化向量的向量?
下面的代码使我的应用程序崩溃。
#include <iostream>
#include <vector>
int main()
{
std::vector< std::vector< unsigned short > > table;
for(unsigned short a = 0; a < 13; a++){
for(unsigned short b = 0; b < 4; b++){
table[a][b] = 50;
}
}
}