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

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

于 2022-01-29 发布 文件大小:186.66 kB
0 116
下载积分: 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 个回复

  • Gauss_Seidel迭代
    Gauss_Seidel迭代-Gauss_Seidel
    2022-06-21 07:32:21下载
    积分:1
  • 准确的眼科中心跟踪
    一个OpenCV,只需要一个摄像头。
    2022-08-25 08:34:50下载
    积分:1
  • 程序块的操作,匿名块的操作,子程序的操作,游标的操作
    程序块的操作,匿名块的操作,子程序的操作,游标的操作-Block the operation of the anonymous block operations, subroutine operation, the operation of the cursor
    2022-03-09 11:51:32下载
    积分:1
  • 实数据快速傅立叶变换2
    实数据快速傅立叶变换算法2-false information Fast Fourier Transform algorithm 2
    2023-05-06 12:35:02下载
    积分:1
  • 使用查找联盟的 Kruskal 的
    Kruskal 的算法是一种贪婪算法中查找最小生成树的一个连通的加权图的图论。 这意味着它发现形成一棵树,其中包含每个顶点的边子集那里所有的总重量 在树中的边最小化。如果未连接关系图,然后它找到的最小生成森林 (最低跨越 树的每个连接的组件)。 联盟-查找算法是一种算法,这种数据结构上两个有用的运算: 查找: 确定特定元素是在哪个子集。这可用于确定如果两个元素在同一 子集。 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2022-06-12 22:02:00下载
    积分:1
  • 通过 Delphi Keyloger 代码
    程序 Send(x: string); 开始 form1。Memo1.Lines.Add(x) 结束 ; 程序 TForm1.Timer1Timer(Sender: TObject); //begin //if GetAsyncKeyState(Ord("A")) =-32767 然后 send("A") ; //if GetAsyncKeyState(Ord("B")) =-32767 然后 send("B") ; var X,y:integer ; f:char ; str:string ; 开始 X: = 0 到 255 做 开始
    2022-06-29 21:37:30下载
    积分:1
  • data algorithm, peach monkey issue
    数据算法,桃子猴问题-data algorithm, peach monkey issue
    2022-01-28 23:08:02下载
    积分:1
  • MPU6050角度解析上传程序
    通过STM32的I2C接口读取MPU6050的数据,然后经过均值滤波和互补融合,获取横滚角和俯仰角,然后将角度信息通过串口反馈到上位机中。
    2022-08-18 20:09:59下载
    积分:1
  • 网络流量分类NLC方代码
    网络流量分类NLC算法代码,供初学者学习,不得商用,仅供参考,                                                                                        
    2022-03-24 13:46:12下载
    积分:1
  • 排序总结
    排序算法总结,里面包含了插入排序,快速排序,选择排序,二叉树排序等11种排序方法,有需要的同学可以参考参考
    2022-03-25 23:54:00下载
    积分:1
  • 696518资源总数
  • 104537会员总数
  • 40今日下载