a****m 发帖数: 693 | 1 #include
#include
using namespace std;
int main()
{
int**** array4d; // *four*-dimensional pointer.
int num, x, y, z, i, j, k; // Dimensions of table.
num=3;x=2;y=2;z=2; // Find out the number of rows &
array4d = new int***[num];
//array3d = new (int**)[x];
for(i = 0; i < num; i++)
{
array4d[i] = new int**[x];
for(j = 0; j < x; j++)
array4d[i][j] = new int* [y];
for(k = 0; k < y; k++)
array4d[i][j]... 阅读全帖 |
|