資源簡介
#include<iostream>
#include<fstream>
#include<iomanip>
#include<stdlib.h>
using namespace std;
# define MaxN 100//初始設定的最大結點數
# define MaxC 1000//最大編碼長度
# define ImpossibleWeight 10000//結點不可能達到的權值
# define n 26//字符集的個數
//-----------哈夫曼樹的結點結構類型定義-----------
typedef struct //定義哈夫曼樹各結點
{
int weight
代碼片段和文件信息
評論
共有 條評論