登录
首页 » 文档处理 » 输入一个任意大小的迷宫,用栈求出一条走出迷宫的路径,并 显示在屏幕上。 程序实现: 可以实现载入迷宫和保存迷宫,附带文件中有4个测试迷宫路径的 文件test1~...

输入一个任意大小的迷宫,用栈求出一条走出迷宫的路径,并 显示在屏幕上。 程序实现: 可以实现载入迷宫和保存迷宫,附带文件中有4个测试迷宫路径的 文件test1~...

于 2022-01-25 发布 文件大小:53.25 kB
0 195
下载积分: 2 下载次数: 1

代码说明:

输入一个任意大小的迷宫,用栈求出一条走出迷宫的路径,并 显示在屏幕上。 程序实现: 可以实现载入迷宫和保存迷宫,附带文件中有4个测试迷宫路径的 文件test1~4.dd。请将这些文件拷贝到TC当前目录下,或者在载 入时写明完全路径。由于屏幕大小的限制,当用户自己输入迷宫 时一定要注意:迷宫大小是有限制的,不小于4*3,不大于30*20。 否则会出现错误信息。输入开始时全是墙,用上下左右键移动, 用Del键删除墙,形成通路,用Enter键添加墙。输入结束时可以 将迷宫保存下来,以dd为扩展名。输入完毕时用F9键来得到结果, 找到路径时,屏幕下方会出现Path found,否则出现Path not found。 程序经Turbo C 2.0编译调试成功。运行时不用添加任何运行库。 不可以在VC上编译。 下载DOS版和windows版的迷宫游戏全部代码-importation of a maze of arbitrary size, with a stack get out of the maze of trails and on the screen. Program : can achieve and preserve the printed maze maze, the accompanying documents were four test maze of trails to document test1 4.dd. I would be grateful if those files are copied to the TC current directory, or in the state when fully contained path. Due to restrictions on the size of the screen when the user input labyrinth must pay attention to : the size of the maze is a restriction, not less than 4* 3, not more than 30* 20. Otherwise there will be a wrong message. At the beginning of the importation of

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 远程内容提取服务
    应用背景这是一个.net应用项目的部分功能。由于客户端未必有安装office或者版本的原因,所以当时的解决方式是由中心服务器统一提取文档内容。并且客户端该应用的场景较少,只是在记录事件时才用到,因此具有可行性。关键技术应用层通过TCP协议与服务端通信。根据约定的应用报文协议,应用层程序把需转换的文件名上传给服务端。服务端根据收到的文件名区分,分别打开word或excel组件,并调用组件的功能遍历文档,生成文本内容后,打包到报文,回传给客户端。这样,客户端可以无需安装office即能实现文件内容的提取。
    2022-03-22 05:44:27下载
    积分:1
  • 编程算法在本中是非常重要的,和数学算法…
    算法对于编程来说很重要,本文结合数学对算法进行了很深入的研究,讲解很深刻,看懂需要很扎实的数学功底才行。-for programming algorithm is very important in this paper, and mathematical algorithms to a very in-depth study on the deep need to understand very solid mathematical foundation it.
    2022-04-27 18:52:02下载
    积分:1
  • 如何让CDC上输出的字、图形具有保持功能,集合类CPtrArray的使用,CPaintDC与CClientDC的区别与应用,OnPaint与OnDraw在CV...
    如何让CDC上输出的文字、图形具有保持功能,集合类CPtrArray的使用,CPaintDC与CClientDC的区别与应用,OnPaint与OnDraw在CView中的关系及实现内幕,滚动窗口的实现,坐标空间,映射方式,设备坐标与逻辑坐标的转换。元文件设备描述表的使用,如何利用兼容DC实现图形的保存和再现。-CDC on how to output text, graphics have to keep feature, CPtrArray use of collections, CPaintDC with CClientDC and application of the distinction, OnPaint and OnDraw in CView relations and realize the insider, the realization of a rolling window, the coordinates of space, mapping the way device coordinates and logical coordinates conversion. Metafile device use, how to use DC-compatible graphics realize the preservation and reproduction.
    2022-12-04 06:40:02下载
    积分:1
  • 计算机方面的论
    计算机方面的论文-computers in the papers
    2022-04-20 02:37:09下载
    积分:1
  • 一个篮球进框动画
    一个篮球进框动画-into a basketball frame animation
    2023-07-22 06:05:03下载
    积分:1
  • the menu, mouse development support tools
    TC 下的菜单、鼠标开发辅助工具-the menu, mouse development support tools
    2023-04-25 05:40:03下载
    积分:1
  • how to obtain hard drive serial number (2)
    如何获得硬盘序列号(2)-how to obtain hard drive serial number (2)
    2023-07-16 13:55:02下载
    积分:1
  • 著名的英雄网站件包,在Unix,Linux下工作是一个很好的方法。
    著名的linux英雄站点的文档打包,对在unix,linux下工作的朋友是一个不错的参考文档。不是我吹牛,看看就知道了:)-famous hero site documentation package, in unix, working under linux is a good friend of the reference document. I am not bragging, but look at know :)
    2022-02-05 19:11:52下载
    积分:1
  • 有助于解决dsp方面的疑惑,DSP的精华问答(附件共18页)
    有助于解决dsp方面的疑惑,DSP的精华问答(附件共18页)-help resolve the doubts, the best DSP quiz (Annex A total of 18)
    2023-06-26 07:35:03下载
    积分:1
  • To develop functional modules to process grayscale image intensity data. And per...
    To develop functional modules to process grayscale image intensity data. And perform Point and spatial operations. Uses Prewitt, Sobel, and Laplacian of Guassian Methods. And calculates their histograms. -To develop functional modules to process grayscale image intensity data. And perform Point and spatial operations. Uses Prewitt, Sobel, and Laplacian of Guassian Methods. And calculates their histograms.
    2022-01-24 16:02:28下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载