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

Maze-code

于 2014-01-20 发布 文件大小:3KB
0 160
下载积分: 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 个回复

  • [问题描述] 在二叉排序树中查找关键字为KEY的记录 [输入] 有序表输入要查找元素的关键字 [输出] 查找成功是即可显示查找成功 #i...
    [问题描述] 在二叉排序树中查找关键字为KEY的记录 [输入] 有序表输入要查找元素的关键字 [输出] 查找成功是即可显示查找成功 #include #include typedef int KeyType typedef struct{ -[Problem Description] Binary Tree ranking keyword search for the records KEY [imported] ordered to investigate the importation of table find elements of the keyword search [output] is successful you can show success# include
    2022-12-28 03:10:04下载
    积分:1
  • 本文是介绍中的二分查找,比较等思想及算法的
    本文是介绍数据结构中的二分查找,比较数等思想及算法的-this paper is to introduce the data structure to search two hours, a few more ideas and algorithms
    2022-01-25 20:25:17下载
    积分:1
  • 解决N皇后问题的源码及可运行程序,分析各种情况,并输出,直观,有效!...
    解决N皇后问题的源码及可运行程序,分析各种情况,并输出,直观,有效!-Solve the N Queens problem can be the source and run the program, analyze, and output, intuitive, and effective!
    2022-03-24 16:51:03下载
    积分:1
  • 12.7
    设计一个算法,按照深度优先遍历的思想找出从指定结点出发,长度为M的所有简单路径。并将此算法用于邻接表类,在邻接表类中定义一个共有成员函数find(start, m)。(In adjlink to class with negative right value realization monosource shortest path function. Design an algorithm, according to traverse the depth first thoughts from specified node to find out, based on all of the simple length for M path. This algorithm is used for adjlink to class, defined in the class in adjlink to a mutual member function find (start, m).)
    2012-03-24 22:45:24下载
    积分:1
  • sqlite加密版本
    sqlite官方并没有提供加密的功能,但提供了加密的接口。资源中的sqlite添加了加密功能。本加密算法采用XXTEA。如果使用Delphi连接此数据库,建议使用itwriting提供的sqlite wrapper改装版;资源包含有源代码以及编译成功的dll(编译工具:VC++ 2010。)各位可以下载后自行根据源码重新编译。
    2022-01-25 18:47:58下载
    积分:1
  • 这是一个不错的库管理程序
    这是一个不错的数据库管理程序-This is a good database management procedures
    2022-01-30 23:54:59下载
    积分:1
  • tongxunlu20
    具有数据插入、修改、删除、显示、和查询功能的电话簿管理程序。 数据包括:人名、工作单位、电话号码、和E-mail地址。 可对记录中的姓名和电话号码进行修改。 可增加或删除记录。 可显示所有保存的记录。 可按人名或电话号码进行查询。 附加功能: 可修改单个记录的各项内容。 可重新建立电话簿。 可按人名或号码进行排序。 可统计名片数目及可再添加数目。 可插入单个名片并不破坏原有顺序(With the data to insert, modify, delete, display, and query functions of the phone book management program. The data include: the names, work units, phone number, and E-mail address. Can be modified to record the name and phone number. Increase or delete records. You can display all the records kept. According to the names or telephone number for queries. Additional features: you can modify the content of a single record. Can re-establish a Phonebook. According to the names or numbers to be sorted. Statistical card number and add the number. Insert a single card does not destroy the original order)
    2012-05-28 12:48:27下载
    积分:1
  • C++ 语言编写的Point函 初学者比较适宜!
    资源描述本代码比较适合初学者,刚接触C语言的童鞋比较是以查看代码进行了解学习。主讲的是Point函数,编的小程序,供大家下载! 
    2022-06-13 00:46:40下载
    积分:1
  • c++链表模板类,实现所有链表的功能!
    c++链表模板类,实现所有链表的功能!包括增删改查,反转、递归反转等功能。对数据结构初学者有极高的参考价值。且代码规范,命名规范,有很多注释帮助理解。
    2022-08-16 10:11:43下载
    积分:1
  • 二叉树的VC++6.0的详细源代码实现,有测试的例子,测试通过,需要的可以下载。...
    二叉树的VC++6.0的详细源代码实现,有测试的例子,测试通过,需要的可以下载。-Binary Tree VC++ 6.0 realize the detailed source code, there are examples of test, test passed, the needs can be downloaded.
    2022-02-20 23:54:50下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载