代码搜索:BinaryTree
找到约 1,360 项符合「BinaryTree」的源代码
代码结果 1,360
www.eeworm.com/read/168218/9933057
cpp huffman.cpp
// Huffman tree
#include
#include "minheap.h"
#include "binary.h"
#include "huffman.h"
template
BinaryTree HuffmanTree(T a[], int n)
{// Generate Huffman tree wi
www.eeworm.com/read/168218/9933065
h huffman.h
#ifndef Huffman_
#define Huffman_
template
class Huffman {
friend BinaryTree HuffmanTree(T [], int);
public:
operator T () const {return weight;}
private:
www.eeworm.com/read/168218/9933294
h btnode2.h
#ifndef BinaryTreeNode_
#define BinaryTreeNode_
template class BinaryTree;
template class BSTree;
template class DBSTree;
template
c
www.eeworm.com/read/168218/9933302
h binary.h
// file binary.h
// LevelOrder and the private recursive PreOrder,
// InOrder, and PostOrder mthods have been changed
// from template functions to integer functions because
// Visual C++ is u
www.eeworm.com/read/416348/10002089
cpp ep7_11.cpp
/*7.11 为二叉树类编写一个拷贝构造函数(采用前序遍历)和拷贝赋值运算符(=)。。*/
#include
#include
using namespace std;
templateclass BinaryTree;
templateclass Node{
Node *lchild,
www.eeworm.com/read/416348/10002092
cpp ep7_10.cpp
/*7.10 为二叉树类编写统计其度为2的结点数n2的成员函数,统计叶结点数n0的成员函数。并验证 n0= n2+1。*/
//此题将两函数定为私有,在公有部分加接口函数
#include
#include
using namespace std;
templateclass BinaryTree;
template
www.eeworm.com/read/416348/10002162
cpp ep7_14.cpp
/*7.14 编写函数模板,用递归方法求二叉树的深度。*/
#include
#include
using namespace std;
templateclass BinaryTree;
templateclass Node{
Node *lchild,*rchild;
T inf
www.eeworm.com/read/164393/10111252
h btnode2.h
#ifndef BinaryTreeNode_
#define BinaryTreeNode_
template class BinaryTree;
template class BSTree;
template class DBSTree;
template
c
www.eeworm.com/read/164393/10111255
h binary.h
// file binary.h
// LevelOrder and the private recursive PreOrder,
// InOrder, and PostOrder mthods have been changed
// from template functions to integer functions because
// Visual C++ is u
www.eeworm.com/read/358191/10194493
h btnode2.h
#ifndef BinaryTreeNode_
#define BinaryTreeNode_
template class BinaryTree;
template class BSTree;
template class DBSTree;
template
c