Description: 1) I: initialization (Initialization). From the terminal read into the character set size, N, and n characters and N weights, the establishment of Huffman tree, and save it in the file hfmTree.
2) E: coding (Encoding). Using the built Huffman tree (if not in memory, then read it from the file hfmTree), encode the text in the file ToBeTran, and then put the results in the file CodeFile.
3) D: decoding (Decoding). Huffman tree has been built using the file CodeFile code for decoding, the results stored in the file TextFile.
To Search:
File list (Check if you may need any files):
代码\1_array.c
代码\1_array.exe
代码\1_array.o
代码\1_link.c
代码\1_link.exe
代码\1_link.o
代码\2.2.c
代码\2.2.exe
代码\2.2.o
代码\2_q.c
代码\2_q.exe
代码\2_q.o
代码\2_stack.c
代码\2_stack.exe
代码\2_stack.o
代码\codeFile.txt
代码\hfmTree.txt
代码\xxx.txt
代码\第七题.cpp
代码\第七题.exe
代码\第九题.cpp
代码\第九题.exe
代码\第五题.cpp
代码\第五题.exe
代码\第八题.cpp
代码\第八题.exe
代码\第六题.cpp
代码\第六题.exe
代码\第四题.cpp
代码\第四题.exe
代码