Click here to Skip to main content
15,662,434 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
Updated 25-Feb-15 8:08am

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:

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
You can use famous open-source 7-zip which implements different algorithms, including ZIP:[^],[^],[^],[^].

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