64,637
社区成员
发帖
与我相关
我的任务
分享
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;
}