I have this multidimensional 2 arrays
int anArray1[MAX_ROW][MAX_CELL] =
{
{ 0, 1, 1, 0, 1, 1, 1, 0},
{ 0, 1, 1, 0, 1, 1, 1, 0},
{ 0, 1, 1, 0, 1, 1, 1, 0},
{ 0, 1, 1, 0, 1, 1, 1, 0},
{ 0, 0, 0, 0, 0, 0, 0, 0}
}
int anArray2[MAX_ROW][MAX_CELL] =
{
{ 0, 1, 1, 0, 1, 1, 1, 0},
{ 0, 1, 1, 0, 1, 1, 1, 0},
{ 0, 1, 1, 0, 1, 1, 1, 0},
{ 0, 1, 1, 0, 1, 1, 1, 0},
{ 0, 0, 0, 0, 0, 0, 0, 0}
}
and i want to store them in index based container , i tryed to make another int array that supposed to hold them like this:
int LevelsArray[LEVELS_COUNT] = { anArray1, anArray2};
im getting this error:
error C2440: 'initializing' : cannot convert from 'int [68][8]' to 'int'
i guess this is not the correct way .. what is the recommended way ?