使用unzip库可以轻松解压zip文件,源码下载地址:http://www.codeproject.com/Articles/7530/Zip-Utils-clean-elegant-simple-C-Win
#include <Windows.h>
#include"unzip.h"
SetCurrentDirectory("c:\\");
HZIP hz = OpenZip("c:\\aa.zip",0);
ZIPENTRY ze;
GetZipItem(hz,-1,&ze);
int numitems=ze.index;
for (int i=0; i<numitems; i++)
{ GetZipItem(hz,i,&ze);UnzipItem(hz,i,ze.name);
}
CloseZip(hz);
SetCurrentDirectory:设置解压目录