Description: The following functions: ⑴ I: initialization (Initialization). Read from the terminal character set size n, and n characters and n weights to build the Huffman tree, and save it in the file hfmTree in ⑵ E: encoding (Encoding). Been built using Huffman tree (eg not in memory, reads from the file hfmTree), the text of the document ToBeTran encoded, and then the result is stored in the file Codefile ⑶ D: decoding (Decoding). Use Huffman tree has been built CodeFile code file decoding, the result is stored in the file TextFile ⑷ P: Print code files (Print). The file CodeFile displayed on the terminal in a compact format, each row 50 code. At the same time this is written in the form of encoded characters in file CodePrin ⑸ T: Print Huffman tree (Tree Printing). Would have been in memory Huffman tree in an intuitive way (tree or recessed table form) is displayed on the terminal, but this character in the form of written documents TreePrint in the Huffman tree.
To Search:
File list (Check if you may need any files):
yuesefuhuan\p8.cpp
...........\实验八 哈夫曼编_译码器.ppt
...........\实验八补充说明.ppt
yuesefuhuan