// ========================================================================== // $Id: dynamic2d.cpp,v 1.2 2008/09/13 01:36:52 jlang Exp $ // CSI2372 example Code for lecture 3 // ========================================================================== // (C)opyright: // // Jochen Lang // SITE, University of Ottawa // 800 King Edward Ave. // Ottawa, On., K1N 6N5 // Canada. // http://www.site.uottawa.ca // // Creator: jlang (Jochen Lang) // Email: jlang@site.uottawa.ca // ========================================================================== // $Log: dynamic2d.cpp,v $ // Revision 1.2 2008/09/13 01:36:52 jlang // Minor clarifications arrays and operators // // Revision 1.1 2006/09/11 21:38:35 jlang // Check-in for lecture 3 // // // ========================================================================== #include #include using std::cout; using std::endl; using std::setw; /** Print a 2D array by passing the array as an array of pointer to pointer * Will not work with multi-dimensional arrays or semi-dynamic arrays * since types cannot be converted. */ void printIntArray2D_ptr_ptr( int **numbers, const int numRows, const int numCols ) { for (int r=0;r