#include #include #include #include "QObj.h" #include "PG3.h" using namespace std; QObj::QObj (int R, int C, char **MZ) { r = R; c = C; M = new char*[height()]; for (int i=0; i < height(); i++) { M[i] = new char[width()]; for (int j=0; j < width(); j++) M[i][j] = MZ[i][j]; } } QObj::~QObj() { for (int i=0; i < height(); i++) delete M[i]; delete M; } int QObj::getr () { return r; } int QObj::getc () { return c; } char ** QObj::getM () { return M; }