可以实现哈弗曼编码和译码绝对可靠#include#include#include#includetypedefstruct{intweight;intparent,lchild,rchild;charinfo;}HTNode,*HuffmanTree;//哈夫曼树节点类型typedefstruct{charinfo;intweight;}node;//文本字符及其权重节点类型typedefchar**HuffmanCo