文件名称:5
介绍说明--下载内容均来自于网络,请自行研究使用
1.C或 C++;
2.从终端读入字符集大小n,以及n个字符和n个权值,建立哈夫曼树并将它存于文件hfmTree中.将已在内存中的哈夫曼树以直观的方式(比如树)显示在终端上;
3.利用已经建好的哈夫曼树(如不在内存,则从文件htmTree中读入),对文件ToBeTran中的正文进行编码,然后将结果存入文件CodeFile中,并输出结果,将文件CodeFile以紧凑格式先是在终端上,每行50个代码。同时将此字符形式的编码文件写入文件CodePrint中。
4.利用已建好的哈夫曼树将文件CodeFile中的代码进行译码,结果存入文件TextFile中,并输出结果。
-1.C, or C++ 2. Read from the terminal into the character set size n, as well as the n character and the n-weights, the establishment of Huffman tree and it is stored in the file in hfmTree. Will have been in memory of the Huffman tree in an intuitive way (such as tree) shows the terminal 3. the use of the Huffman tree has been built (eg, not in memory, read from the file into the htmTree), in the body of the document ToBeTran encoded, and then The results stored in CodeFile file, and output the file to a compact format CodeFile first in the terminal, every line of code 50. At the same time the form of this character encoding of the file write to a file CodePrint. 4. The use of the Huffman tree has been built CodeFile file in the code decoding results stored in the file TextFile, and output.
2.从终端读入字符集大小n,以及n个字符和n个权值,建立哈夫曼树并将它存于文件hfmTree中.将已在内存中的哈夫曼树以直观的方式(比如树)显示在终端上;
3.利用已经建好的哈夫曼树(如不在内存,则从文件htmTree中读入),对文件ToBeTran中的正文进行编码,然后将结果存入文件CodeFile中,并输出结果,将文件CodeFile以紧凑格式先是在终端上,每行50个代码。同时将此字符形式的编码文件写入文件CodePrint中。
4.利用已建好的哈夫曼树将文件CodeFile中的代码进行译码,结果存入文件TextFile中,并输出结果。
-1.C, or C++ 2. Read from the terminal into the character set size n, as well as the n character and the n-weights, the establishment of Huffman tree and it is stored in the file in hfmTree. Will have been in memory of the Huffman tree in an intuitive way (such as tree) shows the terminal 3. the use of the Huffman tree has been built (eg, not in memory, read from the file into the htmTree), in the body of the document ToBeTran encoded, and then The results stored in CodeFile file, and output the file to a compact format CodeFile first in the terminal, every line of code 50. At the same time the form of this character encoding of the file write to a file CodePrint. 4. The use of the Huffman tree has been built CodeFile file in the code decoding results stored in the file TextFile, and output.
相关搜索: Codeprint
(系统自动生成,下载前可以参看下载内容)
下载文件列表
5.cpp