Ejemplo n.º 1
0
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");
}
Ejemplo n.º 2
0
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;
}
Ejemplo n.º 3
0
void TestUnCompress()
{
	FileCompress fc;
	fc.UnCompress("Input");
}