以三维数组为例:
int m,n,p;
m = 2;n=3;p =4;
int *t = new int[m*n*p];
int (*a)[n][p];
a = ( int (*)[n][p] )t;
1
yangxin0 2016-09-22 16:39:47 +08:00
代码是给人看的, 你这代码有点炫技了, 多写几行多好啊,大家一目了然
|
2
wodesuck 2016-09-22 21:56:34 +08:00
|
3
zhanglintc 2016-09-23 08:37:01 +08:00 via iPhone
一脸茫然
|