crazy-arse array code that i need help with -- whats wrong with this?
Alright, here is the code:
Code:
struct LEVELINFO
{
int (*level)[BLOCK_GRID_ROWS][BLOCK_GRID_COLUMNS];
};
//ind = (*(lev[current_level].level + rowcounter))[colcounter];
//ind = *(*(lev[current_level].level + rowcounter) + colcounter);
ind = *(lev[current_level].level[rowcounter] + colcounter);
I tried all 3 of those lines and they all give this error:
error C2440: '=' : cannot convert from 'int [22]' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast