haffmanTree(哈夫曼树)的相关操作 + 两种遍历哈弗曼算法+ 无递归遍历+ 叶子节点遍历
#includeusingnamespacestd;typedefstructnode//节点的信息{intweight;intparent,lchild,rchild;}node,*HuffmanTree;typedefchar**HuffmanCode;/*按升序排*/intcmp(constvoid*a,constvoid*b){return((HuffmanTree)a)->weight-