资源简介
操作系统课程设计大全
代码片段和文件信息
#include
#include
#include
#include
#include
#define HuffmanTree HF
#define HuffmanCode HMC
typedef struct
{unsigned int weight;
unsigned int parentlchildrchild;
} HTNode*HF;
typedef char **HMC;
typedef struct {
unsigned int s1;
unsigned int s2;
} MinCode;
void Error(char *message);
HMC HuffmanCoding(HF HTHMC HCunsigned int *wunsigned int n);
MinCode Select(HF HTunsigned int n);
void Error(char *message)
{
fprintf(stderr“Error:%s\n“message);
exit(1);
}
HMC HuffmanCoding(HF HTHMC HCunsigned int *wunsigned int n)
{
unsigned int is1=0s2=0;
HF p;
char *cd;
unsigned int fcstartm;
- 上一篇:解决大量域用户自动锁定
- 下一篇:非常好的无线网络ns2仿真教程
评论
共有 条评论