📄 pex10_9.cpp
字号:
#include <iostream.h>
#pragma hdrstop
#include "maze.h" // include the maze class
void main (void)
{
// the file containing the maze parameters
char filename[32];
cout << "Enter the data file name: ";
cin >> filename;
// build the maze by reading the file
Maze M(filename);
// solve the maze and print the result
if (M.TraverseMaze(1))
cout << endl << "You are free!" << endl;
else
cout << "No path out of the maze" << endl;
}
/*
<Run>
Enter the data file name: wex10_12.dat
12 11 7 6 2 1
You are free!
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -