登录
首页 » 数据结构 » 以一个Maze(m, n)的长方阵表示迷宫, 迷宫的入口是Maze(1,1), 出口是Maze(m, n), Maze(i,j)等于0表示通路, Maze(i,...

以一个Maze(m, n)的长方阵表示迷宫, 迷宫的入口是Maze(1,1), 出口是Maze(m, n), Maze(i,j)等于0表示通路, Maze(i,...

于 2023-04-15 发布 文件大小:805.00 B
0 260
下载积分: 2 下载次数: 1

代码说明:

以一个Maze(m, n)的长方阵表示迷宫, 迷宫的入口是Maze(1,1), 出口是Maze(m, n), Maze(i,j)等于0表示通路, Maze(i,j)等于1表示障碍。设计一个程序,对任意设定的迷宫,求出一条从入口到出口的通路,或得出没有通路的结论。各个命令以及相关数据的输入格式如下: 输入迷宫:C,接下来一行是m n,其中m是迷宫矩阵行数,n是迷宫矩阵列数,接下来的m行数据是迷宫矩阵,每行n个值,表示一个m*n的迷宫矩阵 求迷宫的一条通路:Q 当输入的命令为E时,程序结束-With a Maze (m, n), said the long square maze, the maze entrance is a Maze (1,1), exports is the Maze (m, n), Maze (i, j) is equal to 0, said channel, Maze (i, j) is equal to 1, said barrier. Designing a program, for any set of the maze, find a path from the entrance to the export, or come to the conclusion there is no path. The various commands and data input format is as follows: Enter the Labyrinth: C, followed by his party mn, where m is the maze of matrix rows, n is a maze of matrix columns, the next line of data is a maze m matrix, each row n- value, indicating an m* n matrix of the labyrinth a maze of pathways: Q when the input command for the E, the end of the process

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

发表评论

0 个回复

  • primary structure of the data entry ranking eight small procedures, interested t...
    初级入门数据结构的排序等8个小程序,有兴趣的看看哈!我的作业,呵呵!-primary structure of the data entry ranking eight small procedures, interested to see Ha! I work, Ha ha!
    2022-11-03 07:55:03下载
    积分:1
  • 数据结构与算法――C++版 好书要不要,不用付钱的哦
    数据结构与算法――C++版 好书要不要,不用付钱的哦-data structures and algorithms-- C version of the books should not and do not have to pay oh
    2022-05-09 09:58:50下载
    积分:1
  • 数据结构
    数据结构-遍历实验-data structure-traverse experiment
    2023-07-28 02:55:03下载
    积分:1
  • err
    用C语言编写的谭号强课后习题的部分解答,较参考书上使用,简单,易于理解,非常适合初学者。-err
    2022-06-21 13:22:14下载
    积分:1
  • Addison
    Addison-Velski 和 Landis (AVL-Tree s)的二叉树,可以在对数时间内进行标准的操作,如插入、搜索和删除。-Addison-Velski and Landis (AVL- Tree s) of the binary tree, the right time for a few of the standard operation, such as insert, delete and search.
    2022-07-12 08:29:17下载
    积分:1
  • 在PHP项目管理软件
    应用背景PHP项目管理是在GPL下发布了一个免费的开源应用要求PHP 4 +MySQL 4 +Apache或者IIS关键技术安装解压所有文件/文件夹。编辑connect.php并输入数据库信息。复制所有文件/文件夹到您的网站空间。运行create.php创建数据库称为“phptask”和创建的所有数据库表。重命名或删除文件create.php在成功安装。管理员用户的名字是“user123”,与“一”的口令。
    2023-08-05 02:45:03下载
    积分:1
  • Data structure the curriculum design issues welcome maze download
    数据结构 课程设计 迷宫问题 欢迎下载-Data structure the curriculum design issues welcome maze download
    2022-12-18 14:05:03下载
    积分:1
  • 工资管理系统
    每个员工收到的工资,薪金,与数量的列表。一个完整的系统,他们计算一个员工的工资,打印工资单。你可以配置你的列表中。
    2023-07-30 18:10:04下载
    积分:1
  • 基于对话框的数据库编程
    基于对话框的数据库编程-Database Programming
    2022-09-01 04:50:02下载
    积分:1
  • 利用C语言实现两个多项式的加法,依次输入输入指数和系数,数据输入以(0,0)结束...
    利用C语言实现两个多项式的加法,依次输入输入指数和系数,数据输入以(0,0)结束-use C language two polynomials additive, in order to import and importation index coefficient, data input to (0,0) end
    2022-05-17 05:29:00下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载