?? bitree.h
字號:
// BiTree.h: interface for the CBiTree class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_BITREE_H__2AAB56D0_AE79_43BE_8074_72A835E2219C__INCLUDED_)
#define AFX_BITREE_H__2AAB56D0_AE79_43BE_8074_72A835E2219C__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "BiTreeNode.h"
#include <string>
using std::string;
#include <vector>
using std::vector;
class CBiTree
{
public:
void Decode(char *p_words,int w_size,char *q_codes,int &code_size);
void CountLeaves(CBiTreeNode *p);
void preorder(CBiTreeNode *p);
void display(CBiTreeNode * temp);
void editcode(CBiTreeNode *p);//編碼
Calculateweight(int *frelist,float *weight);//計算權(quán)值
CBiTreeNode * CreatTree(float *weight);//建立huffman樹
void printcodes(char *p_codes,int code_size);
CBiTree();
virtual ~CBiTree();
public:
vector <CBiTreeNode *> codes;
CBiTreeNode *root;
int depth;
};
#endif // !defined(AFX_BITREE_H__2AAB56D0_AE79_43BE_8074_72A835E2219C__INCLUDED_)
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -