Description: Use the file to save the initial textual data and the final result.
The file named inputfile1.txt is saved as an English essay.
The file named inputfile2.txt saves 01 code segment;
File name outputfile1.txt save the number of occurrences of each character and the corresponding encoding;
File named outputfile2.txt saves the decoding result corresponding to inputfile2.txt.
Statistics inputfile1.txt the occurrence frequency of each character, and accordingly constructed Huffman tree, the preparation of Huffman code; according to the code has been obtained, the 01 form of coding segment decoding.
specific requirements:
1. Encodes the given character file, generates a code, outputs the number and code of each character occurrence;
2. Decodes a given encoded file, generates characters, and outputs codes and their corresponding characters.
To Search:
File list (Check if you may need any files):
哈弗曼树6.0\Debug\哈弗曼树6.0.exe
哈弗曼树6.0\Debug\哈弗曼树6.0.ilk
哈弗曼树6.0\Debug\哈弗曼树6.0.pdb
哈弗曼树6.0\ipch\哈弗曼树6.0-3be0124c\哈弗曼树6.ipch
哈弗曼树6.0\哈弗曼树6.0\buildHufftree.h
哈弗曼树6.0\哈弗曼树6.0\buildSLList.h
哈弗曼树6.0\哈弗曼树6.0\Debug\CL.read.1.tlog
哈弗曼树6.0\哈弗曼树6.0\Debug\CL.write.1.tlog
哈弗曼树6.0\哈弗曼树6.0\Debug\link-cvtres.read.1.tlog
哈弗曼树6.0\哈弗曼树6.0\Debug\link-cvtres.write.1.tlog
哈弗曼树6.0\哈弗曼树6.0\Debug\link.17052-cvtres.read.1.tlog
哈弗曼树6.0\哈弗曼树6.0\Debug\link.17052-cvtres.write.1.tlog
哈弗曼树6.0\哈弗曼树6.0\Debug\link.17052.read.1.tlog
哈弗曼树6.0\哈弗曼树6.0\Debug\link.17052.write.1.tlog
哈弗曼树6.0\哈弗曼树6.0\Debug\link.23312-cvtres.read.1.tlog
哈弗曼树6.0\哈弗曼树6.0\Debug\link.23312-cvtres.write.1.tlog
哈弗曼树6.0\哈弗曼树6.0\Debug\link.23312.read.1.tlog
哈弗曼树6.0\哈弗曼树6.0\Debug\link.23312.write.1.tlog
哈弗曼树6.0\哈弗曼树6.0\Debug\link.read.1.tlog
哈弗曼树6.0\哈弗曼树6.0\Debug\link.write.1.tlog
哈弗曼树6.0\哈弗曼树6.0\Debug\main.obj
哈弗曼树6.0\哈弗曼树6.0\Debug\mt.read.1.tlog
哈弗曼树6.0\哈弗曼树6.0\Debug\mt.write.1.tlog
哈弗曼树6.0\哈弗曼树6.0\Debug\rc.read.1.tlog
哈弗曼树6.0\哈弗曼树6.0\Debug\rc.write.1.tlog
哈弗曼树6.0\哈弗曼树6.0\Debug\vc100.idb
哈弗曼树6.0\哈弗曼树6.0\Debug\vc100.pdb
哈弗曼树6.0\哈弗曼树6.0\Debug\哈弗曼树6.0.exe.embed.manifest
哈弗曼树6.0\哈弗曼树6.0\Debug\哈弗曼树6.0.exe.embed.manifest.res
哈弗曼树6.0\哈弗曼树6.0\Debug\哈弗曼树6.0.exe.intermediate.manifest
哈弗曼树6.0\哈弗曼树6.0\Debug\哈弗曼树6.0.lastbuildstate
哈弗曼树6.0\哈弗曼树6.0\Debug\哈弗曼树6.0.log
哈弗曼树6.0\哈弗曼树6.0\Debug\哈弗曼树6.0.vcxprojResolveAssemblyReference.cache
哈弗曼树6.0\哈弗曼树6.0\Debug\哈弗曼树6.0.write.1.tlog
哈弗曼树6.0\哈弗曼树6.0\Debug\哈弗曼树6.0_manifest.rc
哈弗曼树6.0\哈弗曼树6.0\FileAnalysis.h
哈弗曼树6.0\哈弗曼树6.0\FreqPair.h
哈弗曼树6.0\哈弗曼树6.0\HuffCode.h
哈弗曼树6.0\哈弗曼树6.0\HuffCodetoFile.h
哈弗曼树6.0\哈弗曼树6.0\HuffDecode.h
哈弗曼树6.0\哈弗曼树6.0\HuffEncode.h
哈弗曼树6.0\哈弗曼树6.0\Huffnode.h
哈弗曼树6.0\哈弗曼树6.0\Hufftree.h
哈弗曼树6.0\哈弗曼树6.0\inputfile1.txt
哈弗曼树6.0\哈弗曼树6.0\inputfile2.txt
哈弗曼树6.0\哈弗曼树6.0\main.cpp
哈弗曼树6.0\哈弗曼树6.0\outputfile1.txt
哈弗曼树6.0\哈弗曼树6.0\outputfile2.txt
哈弗曼树6.0\哈弗曼树6.0\SLList.h
哈弗曼树6.0\哈弗曼树6.0\哈弗曼树6.0.vcxproj
哈弗曼树6.0\哈弗曼树6.0\哈弗曼树6.0.vcxproj.filters
哈弗曼树6.0\哈弗曼树6.0\哈弗曼树6.0.vcxproj.user
哈弗曼树6.0\哈弗曼树6.0.sdf
哈弗曼树6.0\哈弗曼树6.0.sln
哈弗曼树6.0\哈弗曼树6.0.suo
哈弗曼树6.0\哈弗曼树6.0.v12.suo
哈弗曼树6.0\ipch\哈弗曼树6.0-3be0124c
哈弗曼树6.0\哈弗曼树6.0\Debug
哈弗曼树6.0\Debug
哈弗曼树6.0\ipch
哈弗曼树6.0\哈弗曼树6.0
哈弗曼树6.0