摘要: #include #define n 5 //叶子数目 #define m (2*n-1) //结点总数 #define maxval 10000.0 #define maxsize 100 //哈夫曼编码的最大位数 typedef struct { char ch; float weight; int lchild,rchild,parent; }hufmtree; type... 阅读全文
posted @ 2019-06-12 22:25 李振业 阅读(2241) 评论(0) 推荐(0) 编辑
摘要: //将一段信息写入文件中package file; import java.io.*;//引入包 public class Myfile { public static void main(String[] args) throws IOException { // TODO Auto-generated method stub File ... 阅读全文
posted @ 2019-06-12 11:26 李振业 阅读(201) 评论(0) 推荐(0) 编辑