// Ex740.cc // Sec. 7.4 of lecture // 2D arrays // Output matrix #include // global constants (for static 2D array) const int MCOL=3; // Declarations void PrintVec(const int n, const double x[]); void PrintMat_fix(const int nrow, const double a[][MCOL]); void PrintMat(const int nrow, const int ncol, const double a[]); // Definitions //------------------------------------------------------------------- // Print elements of a vector (length n) // void PrintVec(const int n, const double x[]) { int i; cout << endl; for (i=0; i