Пример #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;
}
Пример #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");
}
Пример #3
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;
}
Пример #4
0
void TestUnCompress()
{
	FileCompress fc;
	fc.UnCompress("Input");
}
Пример #5
0
void TestCompress()
{
	FileCompress fc;
	fc.Compress("Input");
}