#include int inf = 1000; typedef struct{ int weight; //结点权值 int parent,lchild,rchild; //结点的双亲、左孩子、右孩子的下标 char ch; //字符 }HTNode,*HuffmanTree; //查找 int Find(HuffmanTree HT, int n) { int min = 0; for (int i = 1; i <= n; i++) { if (HT[i].weight