diff --git a/主函数 b/主函数 new file mode 100644 index 0000000..a475619 --- /dev/null +++ b/主函数 @@ -0,0 +1,27 @@ +主函数 +int main() +{ + switch(i) + { +case 1: +Init_hand_Maze(maze,m,n); +PrintMaze(maze,m,n); +InitStack(S); +MazePath(S,start,maze,,; +PrintPath(S,maze,m,n); +break; +case 2: +Init_automatic_Maze(maze,m,n); +PrintMaze(maze,m,n); +initStack(S): +MazePath(S,start,maze,,; +PrintPath(S,maze,m,n); +break; +case 3: +cycle=(-1);break; +default: +cout<<"\n";cout<<" 你的输入有误!\n”; +break; + } +} +} \ No newline at end of file