Initialising a 3D array
BlitzMax Forums/BlitzMax Beginners Area/Initialising a 3D array
| ||
Well strictly these are arrays of arrays, but you may find this example useful:Strict Local a[]=[1] Print a[0] Local b[][]=[[1],[2]] Print b[1][0] 'prints 2 Local c[][][]=[[[1]],[[2]],[[3]]] Print c[2][0][0] 'prints 3 Local d[][][]=[[[1,2,3],[4,5,6]],[[7,8,9],[10,11,12]],[[13,14,15],[16,17,18]]] Print d[2][1][0] 'prints 16 |
| ||
a bit of array help here: http://www.blitzbasic.com/Community/posts.php?topic=43464 |