📄 encodetree.h
字号:
#ifndef __ENCODETREE_H__
#define __ENCODETREE_H__
struct treeNode{
bool operator < (const treeNode& tn)
{
return count<tn.count;
}
int id;
unsigned int count;
unsigned int code_value;
int left_child;
int right_child;
};
class encodetree{
private: treeNode tn[512];
char path[30];
int nodecount;
int wordcount;
public: encodetree(const char* filepath);
~encodetree(){}
void buildTree(void);
void showState(void);
void encoding(treeNode* ttn,unsigned int code,int level);
int findNode(int nodeid);
void nodeInfo(int nodeid,unsigned int& code,unsigned int& digit);
void convetCode(unsigned char* src,int count_s,unsigned char* dest,int& count_d,unsigned char& remain,int& lenth);
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -