assign3/mat.cpp
// decrement a given element returning new value
decrement a given element returning new value
decrement a given element returning new value
double Matrix::dec(int r, int c)
{
    if (r<0 || r>=maxr || c<0 || c>=maxc) {
        printf("ERROR(get): index out of bounds: asking for (%d, %d) but size is %d X %d\n",
               r, c, maxr, maxc);
        exit(1);
    }
    return --m[r][c];
}
double Matrix :: dec ( int r , int c ) { if ( r < 0 || r >= maxr || c < 0 || c >= maxc ) { printf ( " \n " , r , c , maxr , maxc ) ; exit ( 1 ) ; } return -- m [ r ] [ c ] ; }
decrement a given element returning new value
decrement a given element returning new value