void TestCompress() { FileCompress fc; //char* fileName = "Input.BIG"; //文本 const char* fileName = "294121.jpg"; //图片 //const char* fileName = "1.mp3"; //音频 //const char* fileName = "jdbc1.exe"; //视频 string name(fileName); fc.Compress(name); cout << "压缩" << endl; }
int main() { FileCompress fc; int beg1 = ::GetTickCount(); fc.Compress("Test.txt"); int end1 = ::GetTickCount(); fc.UnCompress("Test.txt"); int end2 = ::GetTickCount(); cout << "ѹËõ" << end1 - beg1 << endl; cout << "½âѹ" << end2 - end1 << endl; system("pause"); }
void TestUncompress() { FileCompress fc; //const char* fileName = "Input.BIG"; //文本 const char* fileName = "294121.jpg"; //图片 //const char* fileName = "1.mp3"; //音频 //const char* fileName = "jdbc1.exe"; //视频 string compressFileName = fileName; compressFileName += ".compress"; fc.UnCompress(compressFileName); cout << "解压缩" << endl; }
void TestUnCompress() { FileCompress fc; fc.UnCompress("Input"); }
void TestCompress() { FileCompress fc; fc.Compress("Input"); }