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; }
65,187
社区成员
250,526
社区内容
加载中
试试用AI创作助手写篇文章吧