/* This program shows you how to use dynamic arrays in C++ */ #include // for cout, cin, etc #include using namespace std; int main() { cout << "Give matrix dimensions (rows, columns): "; size_t m, n; cin >> m >> n; cout << "m=" << m << " n=" << n << endl; int *a = new int [n*m]; // allocate matrix on the heap // perform calculations for (size_t i=0; i