登录
首页 » C++ » Maze-code

Maze-code

于 2014-01-20 发布 文件大小:3KB
0 260
下载积分: 1 下载次数: 6

代码说明:

  以一个m×n的长方阵表示迷宫,0和1分别表示迷宫中的通路和障碍。设计一个程序,对任意设定的迷宫,求出一条从入口到出口的通路,或得出没有通路的结论。首先用二维数组存储迷宫数据,迷宫数据由用户输入。一个以链表作存储结构的栈类型,然后编写一个求解迷宫的递归或非递归程序。求得的通路以三元组(i,j,d)形式输出,其中:(i,j)指示迷宫中的一个坐标,d表示走到下一坐标的方向(东、南、西、北四个方向所用代表数字,自行定义) (With an m × n the long square maze, 0 and 1, respectively maze of pathways and obstacles. Design a program, for any set of the maze, find a path from the inlet to the outlet, or come to the conclusion there is no path. First of a two-dimensional array to store the data maze, maze data input by the user. A linked list storage structure for stack type, and then write a recursive or non-recursive solving the maze procedure. Obtained access to triples (i, j, d) in the form of output, of which: (i, j) indicates the maze of a coordinate, d represents the coordinates walked next direction (east, south, west, north four directions used on behalf of a digital, self-defined))

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

发表评论

0 个回复

  • 泰森多边形
    在c++下,根据点数据画出泰森多边形,并且根据高程填色(In c++, according to the data to draw the Tyson polygon, and according to the elevation of coloring)
    2021-04-22 22:38:48下载
    积分:1
  • 本程序使用expevaluation
    This program use for ExpEvaluation
    2022-03-29 06:20:45下载
    积分:1
  • mainly uses the page frames and tables which some tips worth studying :) include...
    主要使用的页面框架和表格里面有一些值得学习的提示:)包括即时查询和模糊屏幕,内存窗口,表格中显示的整理宽而纯的代码,不是OCX控件类,是使用VFP8的初学者,包括所有VFP8源码和安装制作(txdq安装制作)。VCT),您应该相应地更改生产使用工具的安装路径
    2022-01-25 22:39:22下载
    积分:1
  • 后台输出
    实现冒泡排序、插入排序、shell排序、快速排序、堆排序等经典排序算法,并对每个排序算法的代码行进行注释说明
    2023-02-19 01:40:03下载
    积分:1
  • pb9开发的万能查询源码,相当好用
    pb9开发的万能查询源码,相当好用-pb9 development of the omnipotent source inquiries, very handy.
    2022-07-12 14:30:06下载
    积分:1
  • 工资管理系统
    在一家公司,工资是所有财务记录的......一名雇员的薪金,以及系统和软件处理薪金所需的费用的总和
    2023-01-20 07:50:03下载
    积分:1
  • data structure
    数据结构――动态规划算法-data structure-- Dynamic Programming
    2023-08-05 10:50:03下载
    积分:1
  • 酒店管理系统,完整的文档和源代码,可以直接用来下载使用…
    酒店住宿管理系统,有完整的文件和源码, 可以下载使用-hotel management system, complete documentation and source code can be downloaded for use
    2022-01-27 11:15:53下载
    积分:1
  • 基于VISAUL C++开发的 关键路径求解 属于
    基于VISAUL C++开发的 关键路径求解 属于数据结构-Based on VISAUL C++ Developed to solve the critical path data structure belonging to
    2022-02-26 06:25:12下载
    积分:1
  • 在线购物车
    这个源代码是在线购物车。他们只有一个用户可以选择产品并提交未经注册的信息。
    2022-01-25 17:57:54下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载