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

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

于 2022-08-06 发布 文件大小:3.66 kB
0 182
下载积分: 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上编译。-procedures purpose : to bring in 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 a

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

发表评论

0 个回复

  • pic16f8877a 的源代码
    这是 pic 的 16f877a 的源代码,它使用 timer1 pic16f877a 中,it 应用延迟、 捕获、 比较和它很多的工业技术大学教
    2022-08-24 21:57:21下载
    积分:1
  • 在C++环境下的冗余码编程,可进行8个字符的转换.
    在C++环境下的冗余码编程,可进行8个字符的转换.-C environment in the redundancy program, eight characters for the conversion.
    2022-03-02 02:19:33下载
    积分:1
  • 介绍flnx的 两个基本控件急microwin的远程许代码社和GUI编程开发...
    介绍flnx的 两个基本控件急microwin的远程许代码社和GUI编程开发-flnx introduced the two basic controls urgent microwin remote Xu code and Social Development GUI Programming
    2022-03-23 15:23:22下载
    积分:1
  • XML编辑器复制
    XML复制编辑器是一个快速,自由,验证的XML编辑器,专注于编辑文档标记语言,如DITA,DocBook的,WordprocessingML中。它具有DTD/ XML模式/ RELAX NG验证,XSLT,XPath的,漂亮的印刷,语法高亮,折叠,标记完成/锁定和拼写/样式检查。二进制文件同时发布的Windows和Linux操作系统。免费,开源,跨平台,正在积极发展。对验证RELAX NG模式和XSD是建立在(DTD中也是如此,当然),使用DocBook,主题地图,DITA,打开拉兹洛,TEI,XHTML等词汇已添加。 XSLT内置过。有模式的大型文档。折叠和展开的标签。可以锁定标签,以便编辑仅限于内容领域。
    2022-03-19 20:09:05下载
    积分:1
  • TOYFDTD1 is a stripped
    TOYFDTD1 is a stripped-down minimalist, 3D FDTD code demonstrating the basic tasks in implementing a simple 3D FDTD simulation. An idealized rectangular waveguide is modeled by treating the interior of the mesh as free space and enforcing PEC conditions on the faces of the mesh. A simplified plane wave source is inserted at one end. First released 12 April 1999. Version 1.03 released 2 December 1999.
    2022-03-22 01:10:26下载
    积分:1
  • 寻库小车程发动机h桥测试灯循迹等,图和源程序可供大家参考学习,不错的资料,难得的...
    寻库小车程发动机h桥测试灯循迹等,图和源程序可供大家参考学习,不错的资料,难得的-Carsearchdatabaseprocedures
    2023-07-09 09:30:03下载
    积分:1
  • 世界您好
    #include < stdio.h > 作废 main () { printf ("你好世界"); }
    2022-06-28 07:24:47下载
    积分:1
  • i am uploading matalab programme spectral_subtrac which a step after obj_evolut...
    i am uploading matalab programme spectral_subtrac which a step after obj_evolution-i am uploading matalab programme spectral_subtrac which a step after obj_evolution
    2022-05-14 01:17:56下载
    积分:1
  • SQL生成实体与存储过程的工具,使开发变得非常方便
    SQL生成实体与存储过程的工具,使开发变得非常方便
    2022-03-29 19:36:30下载
    积分:1
  • 考勤机的通讯程序,不知道对大家时候有用!
    考勤机的通讯程序,不知道对大家时候有用!-Attendance machine communication procedures, I do not know when useful for everyone!
    2023-01-07 01:25:04下载
    积分:1
  • 696518资源总数
  • 105873会员总数
  • 12今日下载