提交 f5455294 创建 作者: 宋海霞's avatar 宋海霞

modify

上级 28ab2186
...@@ -42,24 +42,24 @@ int main(int argc, char* argv[]) ...@@ -42,24 +42,24 @@ int main(int argc, char* argv[])
} }
/* /*
功能: function:
用给定的一组权值构造赫夫曼树 用给定的一组权值构造赫夫曼树.
参数: parameter:
pTree -- 赫夫曼树结构体指针 pTree -- 赫夫曼树结构体指针
Count -- 数组元素个数 Count -- 数组元素个数
返回值: returned value:
返回赫夫曼树结构体指针 返回赫夫曼树结构体指针.
*/ */
PHtTree HuffmanTree(PHtTree pTree, int Count) PHtTree HuffmanTree(PHtTree pTree, int Count)
{ {
int i, j; // 游标,主要用于查找最小节点和次小节点的下标 int i, j; // Cursor, which is mainly used to find the index of the smallest node and the second smallest node
int Index1, Index2; // 存放最小和次小节点下标 int Index1, Index2; // 存放最小和次小节点下标
int Number1, Number2; // 存放最小和次小节点权值 int Number1, Number2; // 存放最小和次小节点权值
// //
// TODO: 在此添加代码 // TODO: Add the code here
// //
return pTree; return pTree;
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论