登录
首页 » 算法 » 数据结构-算法-C语言-Demo

数据结构-算法-C语言-Demo

于 2022-01-29 发布 文件大小:186.66 kB
0 191
下载积分: 2 下载次数: 1

代码说明:

#ifndef _BINARY_TREE_H_INCLUDED#define _BINARY_TREE_H_INCLUDED#include #include templatestruct Bintree_node {T element;Bintree_node* lchild;Bintree_node* rchild;explicit Bintree_node(const T& elem=T(), Bintree_node* lchd=0, Bintree_node* rchd=0): element(elem), lchild(lchd), rchild(rchd) {}};templateclass Binary_tree {public:typedef Bintree_node* PBtn;Binary_tree();virtual ~Binary_tree();void clear();int depth() const;int size() const;virtual PBtn find(const T& elem) const=0;virtual void insert(const T& elem)=0;virtual void erase(const T& elem)=0;virtual void print(std::ostream& output) const=0;void print_tree(std::ostream& output) const;protected:

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

发表评论

0 个回复

  • beefarming
    对IPAD平台上的游戏BEEFARMING的小实现,包括蜜蜂和黄蜂,蜜蜂采蜜,黄蜂吃蜜蜂,最后看谁得分高,主要考察的是对算法的设计,影响到能否否胜利                                                                                                                                                     &n
    2022-05-29 00:17:42下载
    积分:1
  • 智能车代码
    应用背景智能飞车智能飞车智能飞车智能飞车智能飞车智能飞车智能飞车智能飞车智能飞车智能飞车智能飞车智能飞车智能飞车智能飞车智能飞车智能飞车智能飞车智能飞车智能飞车智能飞车智能飞车智能飞车智能飞车智能飞车智能飞车智能飞车智能飞车智能飞车智能飞车智能飞车智能飞车关键技术飞思卡尔飞思卡尔飞思卡尔飞思卡尔飞思卡尔飞思卡尔飞思卡尔飞思卡尔飞思卡尔飞思卡尔飞思卡尔飞思卡尔飞思卡尔飞思卡尔飞思卡尔飞思卡尔飞思卡尔飞思卡尔飞思卡尔飞思卡尔飞思卡尔飞思卡尔飞思卡尔飞思卡尔飞思卡尔飞思卡尔飞思卡尔飞思卡尔飞思卡尔飞思卡尔飞思卡尔飞思卡尔飞思卡尔
    2022-03-05 08:23:41下载
    积分:1
  • 使用直观的、线性回归实现的程序!
    利用visual c++,实现线性回归算法的程序!-use visual c, linear regression algorithm to achieve the procedure!
    2022-04-25 16:40:46下载
    积分:1
  • AES加密 C语言
    本算法是关于高级加密标准AES的源代码描述,亲测可用,里面有测试代码,可以在命令行看到测试的加解密效果,需要的亲可以下载来试试哦!
    2023-07-23 10:35:04下载
    积分:1
  • 我的SM3JAVA代码
    我 SM3 算法 Java 代码写在 2012.Include 调试程序和测试代码。
    2023-04-24 20:30:03下载
    积分:1
  • 实施基本例程在Matlab和奥克塔夫(目前利用Matlab R13)为S.
    implement basic routines in Matlab and Octave (currently using Matlab R13) for simulating adaptive beamforming and filtering for antenna arrays.
    2023-02-01 14:30:03下载
    积分:1
  • QR矩阵分解,奇异值分解,可以验证。
    矩阵的QR分解算法,奇异值分解算法等,可以用于数据万挖掘的算法之中,或者作为学习用-QR matrix decomposition algorithm, singular value decomposition algorithm, can be used for data mining algorithms million in, or used as a learning
    2022-06-29 08:21:25下载
    积分:1
  • 求交换变量值的代码:要求编写一个函数实现两个整型变量交换彼此的数值。...
    求交换变量值的代码:要求编写一个函数实现两个整型变量交换彼此的数值。
    2022-04-06 14:11:49下载
    积分:1
  • 一个简单的例子多线程
    一个简单的多线程的例子-a simple example Multithreading
    2022-10-02 17:10:03下载
    积分:1
  • Practice of dynamic arrays (Second Edition) a large amount of data management is...
    实习性 动态数组(第二版) 大量数据的管理是很多程序员的心病,很难找到一个速度快、效率高、支持超大规模数据的表动态数组是一个功能强大的列表形数据管理链表,利用它可以轻松实现超大数据量的随机插入、删除、修改等操作,它另外一个特点就是速度极快,内存利用率高。 -Practice of dynamic arrays (Second Edition) a large amount of data management is the heart of many programmers, it is difficult to find a fast, high efficiency, support for ultra-large-scale data table dynamic array is a powerful list of shape data management list using it can easily realize large amount of data random insert, delete, modify, such as operation, it is another feature of this approach is extremely fast, high memory utilization.
    2023-05-25 14:35:03下载
    积分:1
  • 696516资源总数
  • 106562会员总数
  • 4今日下载