- Category:
- Console
- Tags:
-
[C/C++]
[源码]
- File Size:
- 203kb
- Update:
- 2013-04-21
- Downloads:
- 1 Times
- Uploaded by:
- ld
Description: Completed the design of the maze procedure
Enter
From maze.txt file read into the maze, the following format
Wherein the first maze behavior order N, followed by a N* N matrix representing maze, path 0, and 1 is an obstacle.
Experimental requirements
Requires self-query technical documentation, use of STL stack class, complete the following requirements:
Print maze: DisplayMaze or overloaded <<
Wherein the position of the (1,0) and position (N-2, N-1) Print "=> the rest position 1 Print"## ", the print position" (two
Space), pay attention to each location are two characters.
Print examples:
Looking out of the labyrinth the path and the output FindPath ()
The output format is:
(1,1)-> (2,1)-> (2,2)-> ......
And output the number of steps required.
3 Print dynamic Maze the path WalkPath (and)
Dynamic display out of the labyrinth, every move to modify the display. Order to allow the user to see the display process, you must make the code deceleration do ab
To Search:
File list (Check if you may need any files):
maze.txt
实验五.cpp
实验五.pdf