But that throws an error:
"data member may not have variably modified type `int[(((unsigned int)(((int)MAX_X) + 1)) + 1u)][(((unsigned int)(((int)MAX_Y) + 1)) + 1u)]'|
How should I go about fixing it? I need MAX_X, MAX_Y in other files as well, and I want the Board class to be more dynamic in case I change it later.
If you want these variables available in other files why not make them static in the Board class? Doing it this way makes the code a bit clearer as well (imo), and you don't have to deal with the global variable issues.;