You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
397 B
27 lines
397 B
主函数
|
|
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;
|
|
}
|
|
}
|
|
} |