123456789
int** array = new int*[ rows ]; array[0] = new int[ rows * cols ]; for (int n = 1; n < rows; n++) array[n] = array[0] + n * cols; ... delete[] array[0]; delete[] array;