📜  二维数组 c++ 代码示例

📅  最后修改于: 2022-03-11 14:44:45.480000             🧑  作者: Mango

代码示例3
void printMatrix(array, ROWS> matrix){
for (auto row : matrix){
//auto infers that row is of type array
for (auto element : row){
cout << element << ' ';
}
cout << endl;
}