哈夫曼树源代码.docxVIP

  • 1
  • 0
  • 约6.12千字
  • 约 7页
  • 2020-04-22 发布于四川
  • 举报
#includeiostream #includestring #includefstream using namespace std; #define Max 200 //最大结点数目 #define INT 10000 char ch[Max]; //叶子结点信息(字符) int i,w[Max]; //w为输入的权值数组 typedef struct{ ?unsigned int weight; //权值 ?unsigned int parent,lchild,rchild; }HTNode,*HuffmanTree; //动态分配数组存储赫夫曼树 typedef char * *Huf

文档评论(0)

1亿VIP精品文档

相关文档