CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 数值算法/人工智能 数据结构常用算法

文件名称:Maze

  • 所属分类:
  • 标签属性:
  • 上传时间:
    2013-05-26
  • 文件大小:
    2.39mb
  • 已下载:
    0次
  • 提 供 者:
  • 相关连接:
  • 下载说明:
    别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容来自于网络,使用问题请自行百度

迷宫设计

利用STL 的stack 类,完成以下要求的功能:

1、打印迷宫: DisplayMaze()或者重载<<

其中(1,0)位置和(N-2,N-1)位置打印“=>,其余的1的位置打印“##”,0的位置打印“ ”(两个空格),注意每个位置都是两个字符。

2、寻找走出 迷宫的路径并输寻找走出 迷宫的路径并输寻找走出 迷宫的路径并输寻找走出 迷宫的路径并输寻找走出 迷宫的路径并输寻找走出 迷宫的路径并输FindPath(FindPath(FindPath(FindPath(FindPath(FindPath(FindPath( FindPath()实验设计 实验设计

输出格式为:

(1,1)->(2,1)->(2,2)->……

并输出需要的步数。

3. 动态打印走迷宫的路径 WalkPath()

动态显示出走出迷宫的过程,每一次移动时都相应地修改显示状态。为了能让用户看清显示过程,必须使代码减速,做到大约每秒钟移动一次。为此,可在代码中插入等待语句,每次等待0.25秒的时间,即每秒钟走’4步。

你可能用到的语句:

Sleep(250) 程序睡眠(in <windows.h>)

system(“cls”) 清屏

注意:完成1和2的工作后,屏幕应该显示”按任意键开始动态显示走迷宫路径”,然后等待用户按键后才继续3的工作。-Maze Design

Use the STL stack class, complete the following required features:

1, print Maze: DisplayMaze () or reload <<

Wherein the (1,0) position and the (N-2, N-1) print position "=> 1 position the remaining print"## ", the 0 position Printing" "(two spaces), note that each position are the two characters.

2, find a path out of the maze and enter the path of looking out of the maze and enter the path of looking out of the maze and enter the path of looking out of the maze and enter the path of looking out of the maze and enter the path of looking out of the maze and enter FindPath (FindPath (FindPath (FindPath (FindPath (FindPath (FindPath (FindPath () experimental design experimental design

Output format:

(1,1)-> (2,1)-> (2,2)-> ......

And outputs the number of steps required.

3 Dynamic Print Maze path WalkPath ()

Dynamic process of showing out of the maze, every move are modified accordingly display state. In order to allow the user to see the display p
(系统自动生成,下载前可以参看下载内容)

下载文件列表

DOC/
DOC/maze.txt
DOC/week05.pdf
EXE/
EXE/week05.exe
mazePPT/
mazePPT/1.mp4
mazePPT/maze.ppt
SRC/
SRC/week05.cpp
SRC/week05.h

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com