附录:程序源代码
#include<stdio.h>
#include<stdlib.h>
#include<iostream>
#define leafnum 27
#define hufnum 2*leafnum
#define maxfloat 999.9
typedef struct tnode
{
char name;
float weight;
int lchild,rchild,parent;
} huftree;
typedef struct cnode
{
char bits[leafnum+1];
int start;
char ch;
}hufcode;
hufcode code[leafnum+1];
huftree tree[hufnum+1];
char ch[leafnum+1];
本文来自辣.文,论-文·网原文请找腾讯32.49114
void creathuftree (huftree tree [])
{中小油田企业内部控制存在的问题及对策
int i,j,p1,p2;
float small1,small2;
for(i=1;i<=hufnum;i++)
{
tree[i].name='\0';
tree[i].parent=0;
tree[i].lchild=0;
tree[i].rchild=0;
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9]
Huffman编译码程序的分析与设计-源代码+流程图 第9页下载如图片无法显示或论文不完整,请联系qq752018766