Click here to Skip to main content
15,889,739 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
what i am looking for an example program written in C++ for compression and decompression(encoder and decoder modules)and test it on text files and multimedia files
i want with this code to prove the important of Kraft inequality, Shannon codes, and Huffman codes
and at the end i want the compressed file to be decompressed with any zip software
Posted
Updated 25-Feb-15 8:08am
v2

Your question seems a little weird. You are talking about Kraft inequality, Shannon & Huffman codes, so you seem to already have some knowledge in algorithmics in general, and in compression algorithms specifically. So why don't you just try?

My only source when it comes to dealing with .zip compression format is this library:
SharpZipLib[^]

It is written in C#, though, not in C++. From there[^], you may find something that fits your needs.

That[^] could be of great help, too.

Good luck :)
 
Share this answer
 
v2
You can use famous open-source 7-zip which implements different algorithms, including ZIP:
http://en.wikipedia.org/wiki/7-Zip[^],
http://www.7-zip.org/[^],
http://sourceforge.net/projects/sevenzip[^],
http://sourceforge.net/projects/sevenzip/files[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900