// Ex751-old.cc // // Calling functions defined in print810.cc // without using a header file for declarations // // Compile and Link: // g++ -c printvec.cc // g++ -c Ex751-old.cc // g++ Ex751-old.o printvec.o // declarations of functions from printvec.cc void PrintVec(const int n, const double x[]); void PrintMat(const int nrow, const int ncol, const double a[]); main() { const int N=4,M=3; // local constant // static matrix a double a[N][M] = {4,-1,-0.5, -1,4,-1, -0.5,-1,4, 3,0,-1 }, u[N] = {1,2,3,-2}; PrintMat(N, M, a[0]); // print matrix PrintVec(N, u); // print vector }