node.h
来自「应用编码与计算机密码学>程序 如果好的话请发言」· C头文件 代码 · 共 30 行
H
30 行
#ifndef __node_h
#define __node_h
#include<string>
#include<iostream>
using namespace std;
struct Node{
char letter; //码字
float probability; //码字在文件中出现的概论
string s; //码字在概论树中的位置。左0右1
Node *next;
Node *lchild;
Node *rchild;
Node(){
next=NULL;
lchild=NULL;
rchild=NULL;
letter='\0';
s="";
}
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?