Say I had a 2d map and I had a struct and and array of that type like so:
Now I want to put a 2 dimensional array in the program without specifying the size of it, as I will load the size into the array from a binary file... whenever I just leave the values blank, it seems to give me a compile error and when I just define it as an external struct in a seperate function, then it seems to complain about there not being any constant dimensions in it...Code:struct sMAP{ int tiletype; bool walkable; };




Reply With Quote