1.
T(*p)[n] = new T[m][n];
...
delete []p;
缺点:n必须是已知
优点:调用直观,连续储存
2. T** p = new T*[m];
for(int i = 0; i < m; i++)
p[i] = new T[n];
...
for(int i = 0; i < m; i++)
delete []p[i];
delete []p;
缺点:非连续储存,程序烦琐,p为T**类型
优点:调用直观,n可以不是已知
3. T* p = new T[m*n];
...
delete []p;
缺点:调用不够直观
优点:连续储存,n可以不是已知