bitreenode.cpp

来自「运用面向对象方法编写的一个haffman编码树」· C++ 代码 · 共 30 行

CPP
30
字号
// BiTreeNode.cpp: implementation of the CBiTreeNode class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "BiTreeNode.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CBiTreeNode::CBiTreeNode()
{
	
}

CBiTreeNode::~CBiTreeNode()
{

}
CBiTreeNode::CBiTreeNode(float weight,int i,CBiTreeNode *l,CBiTreeNode *r,CBiTreeNode *next)
{
	this->weight=weight;
	this->data=(char)i;
	this->lChild=l;
	this->rChild=r;
	this->next=next;
	
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?