// array.cpp - allocates, fills, displays, and releases space for a // two-dimensional integer array (Nagler exercise 5.3, pp. 70-71) // CS 60 assignment 4, part 3, Fall 2009 // YOUR NAME, DATE #include using namespace std; // solution to 3.a: forward declarations for four functions - HERE // main is essentially verbatim from Nagler, p. 70-71 int main() { int **ptr; int rows, cols; while ( !(cin >> rows).eof() && !(cin >> cols).eof() ) { allocate(ptr, rows, cols); fill(ptr, rows, cols); display(ptr, rows, cols); release(ptr, rows); } } // solution to 3.b: implementations of four functions - BELOW