problem with array

Pages: 12
This is my skype: ivan_8observer8
multidimensional array is not like:
1
2
3
4
5
6
7
8
 int array1[ size ]; // size is an int
 int array2[ size ]; // size is an int  

// But
 int array1[ size1 ][ size2 ]; // two dimensional, size1 and size2 is an int
 int array2[ size1 ][ size2 ][ size3]; // three dimensional

// .................   


You can't use this technique to achieve this, but use a stuct or class to represent the related data you want to manipulate.

Or use the technique explained by Obsever, MiiNiPaa or kemort...
Topic archived. No new replies allowed.
Pages: 12