i keep getting a segmentation falut when declaring the an object of the following class.

Not sure whyCode:// Declare a class for column matricies class matrix_col{ private: public: int i, j, k; double ptr[4][HoriG][VertG]; //manager functions //constructor matrix_col::matrix_col(){ for(k = 0; k < 4; k++) { for(i = 0; i < HoriG; i++) { for(j = 0; j < VertG; j++){ ptr[k][i][j] = 0; } } } } //copy constructor matrix_col::matrix_col(const matrix_col &a){ for(k = 0; k < 4; k++) { for(i = 0; i < HoriG; i++) { for(j = 0; j < VertG; j++){ ptr[k][i][j] = a.ptr[k][i][j]; } } } } //destructor matrix_col::~matrix_col(){} }