阅读背景:

数组指针数组的析构函数

来源:互联网 

Ok, I have this constructor:

好的,我有这个构造函数:

Board::Board(int nRows, int nCols){
    numRows=nRows;
    numCols=nCols;

    int** board=new int*[numRows];
    for(int i=0; i<numRows; i++){
        board[i]=new int[numCols];

        for(int j=0; j<numCols; j++){
            board[i] [j]=-1;
        }
    }
}
B



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: