2009-11-17 STL vector 二次元配列 int[10][20]とかはもう書かないのかな?いや、書くだろう。 int N, N; // ... vector< vector<int> > Matrix(N, vector<int>(M, -1)); Here we create a matrix of size N*M and fill it with -1.