问题描述
|
将动态多维数组称为数组的数组合适吗?
int **mp = 0;
// Create an array of pointers
mp = new int*[6];
// Where each element of type pointer,points to dynamic array.
for (int x = 0; x < 6; x++)
mp[x] = new int[7];
看看这个,我会说它们是指向大小为7 int的数组的指针数组。
但是动态数组甚至被认为是数组还是指针返回的只是内存?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)