print out 2d array cpp from class code example
Example: print 2d array c++
for( auto &row : arr) {
for(auto col : row)
cout << col << " ";
cout<<endl;
}
for( auto &row : arr) {
for(auto col : row)
cout << col << " ";
cout<<endl;
}