?? lzw.h
字號:
#pragma once
#include <io.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string>
#include <list>
#include <algorithm>
#include <limits.h>
#include <fstream>
#define SYMBOL_TYPE unsigned char
#define SYMBOL_SIZE 1
#define SYMBOL_MAX 255
#define BYTES_LIMIT 2
class LZW
{
public:
LZW(void);
public:
~LZW(void);
public:
void Compress(const std::string& sInput, const std::string& sOutput);
void Decompress(const std::string& SInput, const std::string& sOutput);
private:
int Search(const std::list <std::string>& T, const std::string& w);
bool FindIndex(const std::list <std::string>& T, int i, std::string& w);
int Write(int fdOut, int x);
int Write(int fdOut, const std::string& w);
};
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -