#include<iostream>
using namespace std;
const int M =
10;
const int N =
20;
int main()
{
int** pNum;
pNum =
new int*[M];
for (
int i =
0; i<M; i++)
{
pNum[i] =
new int[N];
}
for (
int j =
0; j<M; j++)
{
delete[]pNum[j];
}
delete[]pNum;
int* a =
new int[M*N];
delete[]a;
int(*pNum)[N] =
new int[M][N];
delete[] pNum;
return 0;
}
转载自:http://jingyan.baidu.com/article/3c48dd34583e48e10be35895.html
转载请注明原文地址: https://ju.6miu.com/read-971785.html