class intmatrix { protected: int rows, cols; int * data; int position(int r, int c); public: intmatrix(int rs, int cs); ~intmatrix(); void fill(int val); void set(int r, int c, int val); int get(int r, int c); int get_rows(); int get_columns(); void print(); };