| Poster | : evlhamburger | | Posts | : 102 | | Country | : Australia | | City | : Brisbane |
| | | | Posted by evlhamburger on 11/01/2009 at 08:13:12
| | ok...
int[] array = new int[10];
you know that that array looks like this...
0...1...2...3...4...5...6...7...8...9
So if I turn that 1 dimensional array (a line) into a 2 Dimensional array (a square) it looks like this.
int[,] array = new int[3,3];
0,0...0,1...0,2
... ... ...
1,0...1,1...1,2
... ... ...
2,0...2,1...2,2
thus I can say "array[0,0] = 3;"
then, as you can guess, can eventually get a 3d array "int[,,] array = new int[2,2,2];" that would look like a cube! | |
|
|