📜  获取二维数组的元素 c++ 代码示例

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

代码示例1
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;
}