-
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
-
random number
随机数分布--高斯分布
100个经典源程序-random number
- 2022-04-21 12:33:04下载
- 积分:1
-
演示了在VC中操作ADO的一般方法,给出了一个操作ADO的强大的类以及利用该类实现数据库操作的一个实例...
演示了在VC中操作ADO的一般方法,给出了一个操作ADO的强大的类以及利用该类实现数据库操作的一个实例-demonstrated in VC ADO operation of the general method is a powerful operating ADO class and the use of database operations such an example
- 2022-04-14 12:57:03下载
- 积分:1
-
Qsort针对不同数据类型的用法,Qsort采用快排实现,比传统的sort更有效率...
Qsort针对不同数据类型的用法,Qsort采用快排实现,比传统的sort更有效率-Qsort for the usage of different data types, Qsort exclusive use of quick implementation, more efficient than the traditional sort
- 2022-08-08 03:23:19下载
- 积分:1
-
论坛中有许多操作Access数据库的介绍、说明,示例代码等资源,但感觉总是不太连贯和全面,给急需想要使用Access数据库做开发的朋友不少遗憾。本代码是一个封装...
论坛中有许多操作Access数据库的介绍、说明,示例代码等资源,但感觉总是不太连贯和全面,给急需想要使用Access数据库做开发的朋友不少遗憾。本代码是一个封装完整的Access数据库类,包括Ole版本协商、数据库优化、数据库连接等等。由于接口非常简单易懂,读者下载后即可直接投入使用,非常方便。不过,由于Access DAO不支持多线程,所以在本代码中没有实现更好的替代方案,这也是读者在使用本代码的过程中需要注意的一个地方。由于本人水平有限,程序中难免会有很多缺陷,还请各位高手指点!
- 2022-07-13 12:29:55下载
- 积分:1
-
一种基本算法! 现有一个酒店有100个房间,依次编号为1到100,第一个服务员经过,将所有房间门关上;第二个服务员经过将所有编号为2的倍数房门打开;第三个服务员...
一种基本算法! 现有一个酒店有100个房间,依次编号为1到100,第一个服务员经过,将所有房间门关上;第二个服务员经过将所有编号为2的倍数房门打开;第三个服务员经过将所有编号为3倍数的房门打开的关上,关闭的打开。依此类推;输入一个100以内的正整数N,输出第N服务员经过之后,所有房间的状态。-a basic algorithm! An existing 100 hotel rooms, followed by No. 1-100, after an attendant, all rooms will be closed; Second attendants after all No. 2 in multiples door open; Third attendants after all No. 3 multiples of the open door is shut, Guan the opening closed. XII; The importation of a hundred within the positive integer N, N output after attendants, all rooms in the state.
- 2022-03-24 18:35:44下载
- 积分:1
-
双向约瑟夫问题,利用双向链表实现双向进行的约瑟夫问题
双向约瑟夫问题,利用双向链表实现双向进行的约瑟夫问题-Two-way Joseph problems, using two-way two-way linked to the issue of Joseph
- 2023-04-28 16:05:03下载
- 积分:1
-
给定一个正整数
给定一个n位正整数a,去掉其中任意k
- 2022-08-22 12:54:39下载
- 积分:1
-
第六章 模板与数据结构习题
6.2.1 需要编写一个对多维数组通用的算法(即各维的大小未定),怎样才能把实参多维数组的信息全部传递到函数中去?...
第六章 模板与数据结构习题
6.2.1 需要编写一个对多维数组通用的算法(即各维的大小未定),怎样才能把实参多维数组的信息全部传递到函数中去?-Chapter VI with the data structure template 6.2.1 Exercises need to write a generic algorithm for multi-dimensional array (that is, the size of the peacekeeping undetermined), how can the real multi-dimensional array parameter information passed to the function all go?
- 2022-04-08 13:36:19下载
- 积分:1
-
java数据结构和算法(第二版)
Java数据结构和算法(第二版)-lafore著,教材中的范例程序,用JAVA语言,-Java data structures and algorithms (second edition)-lafore, and textbook examples of procedures, using JAVA language,
- 2022-02-09 20:19:56下载
- 积分:1