If you want to compress or decompress file when writing C++ code,you can choose zlib library,that's quite easy. 1,Download zlib library's code form website:http://zlib.net/ 2,Decompress the file you've downloaded,and then go to the directory "zlib-1.…