typedef vector <int> row; typedef vector <row> matrix; row a(5,0); matrix b(5,a); for(int i = 0; i < 5; ++i){ //你的i,j都没有初值 for(int j = 0; j < 5; ++j){ cout << b[i][j] << ends; } cout << endl; }
6.3w+
社区成员
25.0w+
社区内容