#include#include #include using namespace std; struct HTNode { int m_parent; int m_lchild; int m_rchild; int m_weight; }; struct HTree { HTNode * m_tree; int m_num; }; void InitHTree(HTree &HT, int num) { int total = 2 * num - 1; HT.m_tree = new HTNode[total]; if(!HT.m_tree) { cout<<"init fail"< >HT.m_tree[i].m_weight; HT.m_num++; } for(; i


