-
hospital system
基于c语言和数据库的小型医院管理
- 2023-03-04 17:35:04下载
- 积分:1
-
用VB编写的汉诺塔演示程序创建图形界面的汉诺塔问题,..
汉诺塔演示程序,用VB做成的图形界面,能够实现汉诺塔问题,也即是把N个盘子从一根棍上移到另一根上面,通过中转的棍,但是必须保证在每根棍上都是下面的盘子大于上面的盘子。-HANOR demo program using VB create graphical interface to HANOR problems, that is, N dishes from one club to another on the above-through the interchange stick, but it must be guaranteed in each stick-on the following dishes are greater than the above dishes.
- 2022-05-08 05:57:47下载
- 积分:1
-
2.[问题描述]
编写递归算法,在二叉树中求位于先序序列中第K个位置的结点
[输入]
按照先序序列的顺序输入该结点的内容。其输入abd eh...
2.[问题描述]
编写递归算法,在二叉树中求位于先序序列中第K个位置的结点
[输入]
按照先序序列的顺序输入该结点的内容。其输入abd eh cf i g 。输入要求的位置
[输出]
若二叉树不空,按先序序列输出,求出所求位置的结点
[存储结构]
采用二叉表存储
[算法的基本思想]
采用递归方法建立和遍历二叉树。首先建立二叉树的根结点,然后建立其左右子树,直到空子树为止,先序遍历二叉树时,先遍厉左子树,后遍厉右子树,最后访问根结点并计算出二叉树中叶子结点的数目和第K个位置的结点
#include
#include
struct node{
char info
struct node*llink,*rlink
}
typedef struct node NODE
-2. [Description of the issue] to prepare recursive algorithm, Binary for the first sequence sequence in the first position of the K-node [imported] in accordance with the first order input sequence in the order of the nodes content. Input abd eh i g cf. Import requirements of the position [output] if the binary tree is not empty, the first sequence by sequence output obtained by seeking the location of nodes [storage structure] Table 2 forks storage [algorithm for the basic idea] recursive method and Traversing binary tree. First established binary tree root node, and then to build t
- 2022-06-02 16:30:44下载
- 积分:1
-
上海交通大学上C++课的课件..对初学C++的朋友一定要看看...其中提到了不少容易忽略的环节...
上海交通大学上C++课的课件..对初学C++的朋友一定要看看...其中提到了不少容易忽略的环节-Shanghai Jiaotong University on C++ class courseware. . For beginners in C++ to see friends. . . Many of them referred to the easily overlooked aspect
- 2023-03-31 02:25:04下载
- 积分:1
-
快速排序
基本思想:通过一趟排序,将待排序记录分割成独立的两部分,其中一部分记录的关键字均比另一部分记录的关键字小,则可分别对这两部分记录进行排序,以达到整...
快速排序
基本思想:通过一趟排序,将待排序记录分割成独立的两部分,其中一部分记录的关键字均比另一部分记录的关键字小,则可分别对这两部分记录进行排序,以达到整个序列有序-Basic idea of quicksort: sort through the trip, will be to sort records is separated into two independent parts, some of which are recorded in another part of the record than keyword keyword small, then the two were part of the record sort, so as to achieve the entire sequence of orderly
- 2022-03-10 10:21:56下载
- 积分:1
-
猴子摘香蕉问题使用C++语言描述,写的不好请大家多提意见!...
猴子摘香蕉问题使用C++语言描述,写的不好请大家多提意见!-Monkey mialaw problems using C++ language description, is badly written please speak up!
- 2023-07-10 19:40:03下载
- 积分:1
-
用C++实现大容量数据的快速读入文件,以及快速写入磁盘!...
用C++实现大容量数据的快速读入文件,以及快速写入磁盘!-with C++ realization of the large-capacity, rapid data read from documents, and fast into the disk!
- 2022-07-12 23:48:52下载
- 积分:1
-
float型而二叉树的创建及遍历
#include
#include
struct BiTNode //定义二叉树结构体
{
float data;
struct BiTNode *lchild;
struct BiTNode *rchild;
};
//二叉树创建函数
struct BiTNode *CreateTree(float *preorder,float *inorder,int lenth)
{
float *p,*q;
- 2022-12-24 11:10:03下载
- 积分:1
-
这是研究生课程计算方法与技术中讲到的UnionFind算法的具体实现代码。...
这是研究生课程计算方法与技术中讲到的UnionFind算法的具体实现代码。-This is the post-graduate courses and technical calculation method described in UnionFind algorithm to achieve the specific code.
- 2022-05-26 19:14:24下载
- 积分:1
-
这是我学习算法和数据结构的时间序列的2个
这是我学习数据结构与算法的时候编的双向链表的操作,对学习数据结构与算法的朋友有帮助-This my learning algorithm and data structure of the time series of the two-way linked list, the operation of the learning algorithm and data structure of friends to help! !
- 2022-05-30 11:10:22下载
- 积分:1