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