- Category:
- Windows Develop
- Tags:
-
- File Size:
- 15kb
- Update:
- 2017-12-24
- Downloads:
- 0 Times
- Uploaded by:
- 李剑雨
Description: Design a maze game, given the entrance to the labyrinth. If there is an exit, the program can show the path of walking, and finally reach the exit, and output "successfully walk out of the labyrinth". If there is no exit, the program can also show the process of walking, and finally return to the entry, and output "back to the entry".
1. define a two-dimensional array a to store a random maze.
The four integer values are defined to store the long (m) width (n) of the labyrinth of the user input and the randomly set entrance (P) exit (q).
A character ch is defined to receive the input of the return key.
Define the integer value R and l to indicate the position of the current in the maze.
To Search:
File list (Check if you may need any files):
Filename | Size | Date |
---|
迷宫游戏.exe | 55296 | 2016-02-29
|
Դ.cpp | 4064 | 2016-02-29 |