#include "matrix.h" void error(const char* s) {// remark and quit cerr << s; exit(0); } Matrix::Matrix(int r, int c){ // set up a matrix of zeros if (r<=0 || c<=0)error("bad matrix indeces \n"); row=r; col=c; m=new double[r*c]; for(int i=0; i=0; i--) // back solution for(j=i+1; j