Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

3d dynamic array c++

int ***arr = new int**[X];
for (i = 0; i < z_size; ++i) {
  arr[i] = new int*[Y];
  for (j = 0; j < WIDTH; ++j)
    arr[i][j] = new int[Z];
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #dynamic #array
ADD COMMENT
Topic
Name
8+3 =