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

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

于 2022-08-06 发布 文件大小:3.66 kB
0 311
下载积分: 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 个回复

  • 一个手机RPG游戏的源代码,包含资源图片,eclipse工程文件。
    一个手机RPG游戏的源代码,包含资源图片,eclipse工程文件。-a phone RPG game"s source code, resources include photographs, documents eclipse works.
    2022-07-01 11:52:19下载
    积分:1
  • 严格的说这并不是一个完整的程序,因为还需要配套硬件的支持。它是我上个假期去青岛给一个轮胎厂做缠绕机的时候做的。但是我觉得非常有必要把这个放出来,因为里面有一个我...
    严格的说这并不是一个完整的程序,因为还需要配套硬件的支持。它是我上个假期去青岛给一个轮胎厂做缠绕机的时候做的。但是我觉得非常有必要把这个放出来,因为里面有一个我自己开发的控件,用于绘制工业曲线。压缩报里面还有我的实验记录呢。下载的同学请注意了,只学习,可别乱传播啊。不然让我老师知道我我死定了。-strictly speaking, this is not a complete set of procedures, as required supporting hardware support. It is my last holidays to Qingdao to a tire factory winding machine when done. But I think it is very necessary to have this released, because it is one of my own development controls for industrial drawing curves. There is also reportedly compressed my record? Experiment. Download the students to the only study, to be spread Instead ah. Otherwise I know my teachers I die.
    2022-03-23 01:06:08下载
    积分:1
  • 2D game map editor V0.1 beta
    2D游戏地图编辑器 V0.1 测试版-2D game map editor V0.1 beta
    2022-05-09 02:07:26下载
    积分:1
  • 每个人都有自己的长处,希望大家一起分享,还有,大家互相学习....
    每个人都有自己的长处,希望大家一起分享,还有,大家互相学习.-Everyone has their own strengths, I hope to share with everyone, there are, everyone learn from each other.
    2023-03-29 09:40:03下载
    积分:1
  • operating system with the further understanding of algorithms, and to further un...
    操作系统用的进一步理解各种算法的性能,并且进一步理解各种页面替换算法的优缺点。 -operating system with the further understanding of algorithms, and to further understanding of pages replacement algorithm are discussed.
    2022-01-25 20:40:52下载
    积分:1
  • 掷骰子仿真程序
    按一次按钮仿真一次掷骰子,同时记录下相应数字出现次数,是一个随机过程仿真,基于labview,简单易懂
    2022-02-21 18:12:15下载
    积分:1
  • Serv
    Serv-U7.0.0.4 carck Serv-U7.0.0.4 carck
    2022-08-04 06:38:28下载
    积分:1
  • for liquid simulation study cfd a new method, boltzmann called the lattice metho...
    用于液体模拟,是研究cfd的一种新方法,称之为lattice boltzmann方法。本程序是d105模型的编码。这类编码网上很少,几近没有。如果哪们朋友有这方面的还希望能共用-for liquid simulation study cfd a new method, boltzmann called the lattice method. The procedure is d105 model coding. Few of these online coding, there was virtually no. If what they have friends in this area also hope to share
    2023-02-04 14:20:03下载
    积分:1
  • person类  数据成员: 姓名name、性别sex、年龄age  成员函数 (1)构造函数 (2...
    person类  数据成员: 姓名name、性别sex、年龄age  成员函数 (1)构造函数 (2)输出姓名、性别、年龄 派生类student  数据成员: 学号、专业(代号) 、考试成绩score[5]、平均成绩  成员函数 (1)构造函数 (2)输出学号、姓名、性别、年龄、专业 (3)计算平均成绩 (4)输出学号、姓名、单科成绩和平均成绩 派生类teacher  数据成员: 职工号、职称、讲授课程(课程代号)  成员函数 (1)构造函数 (2)输出职工号、姓名、性别、年龄、职称 (3)设置讲授课程 (4)输出姓名、讲授课程 派生类graduate_student  成员函数 (1)构造函数 (2)输出姓名、性别、年龄、职称、研究生专业 -person category
    2023-05-21 13:45:03下载
    积分:1
  • 扫雷模拟游戏,仿照扫雷游戏编写,是一款简单的游戏。
    扫雷模拟游戏,仿照扫雷游戏编写,是一款简单的游戏。-mine simulation games, modeled on the mine-game preparation, is a simple game.
    2022-03-14 14:06:13下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载