Hey guys, here I have a program that's supposed to generate a maze. It is not completely finished, and there are a few problems, but what stumps is how to pass a multi-dimensional array, edit it, and then return it.
When I compile, it usually tells me I can't convert a const *char to char in the maze gen function. Right now it tells me "cannot convert 'char (*)[(((unsigned int)(((int)num) - 1)) + 1u)]' to 'char (*)' for argument '1' to 'char mazeGenerator(char (*), int)'". It also does not read arr in the MazeGen function. Thanks for any help.
Hah, I was just at a Stroustrup's lecture today and he brought up the crazy types of the VLA arrays in C and how they will be normal arrays when C++ gets VLAs. And there they are in your error message.
In any case, your first error is int num=12;
which must be constint num=12;
for the next line to compile.
There are quite a bit more errors after that, I would start by compiling a smaller program.