Why does my maze solver not work?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to write a program that solves a specific inputted maze recursively and outputs it's position in the maze after each move. Whenever I try and run my code, it immediately crashes and I get a "maze.exe has stopped working" error. Why isn't my code working? #include <iostream> #include <stdio.h> using namespace std; const int MazeHeight = 12; const int MazeWidth = 16; char Maze[MazeHeight][MazeWidth + 1] = { {'S','.','.','.','.','#','.','.','.','#','.','.','.','.','.','.'}, {'#','#','#','#','.','#','.','#','.','#','.','#','#','#','#'