i'm making a class for a maze generator, but i ran into problems even from the beginning.
i have a int named grid, which should be a two dimensional array. this one will store different values, which after bit analysis, will determine which walls are up or down in each square.
i don't know how big each dimension will be. basically, all i want is setting the boundries of an array in the constructor of a class, via two variables, passed to the constructor. how can i do this?
for example, if the user will call
the constructor should make a
int grid[wid][hgt]; // where wid and hgt are passed to the constructor
anyone knows? ty