0001 #define _CRT_SECURE_NO_WARNINGS 0002 0003 #include<iostream> 0004 using namespace std; 0005 0006 #include "_share/util.h" 0007 #include "UniPrint/print.h" 0008 0009 #include "PFC.h" 0010 0011 extern PFCForest* initForest(); //创建编码树森林 0012 extern PFCTree* generateTree ( PFCForest* ); //构造编码树 0013 extern PFCTable* generateTable ( PFCTree* ); //由编码树转换为编码表 0014 extern int encode ( PFCTable*, Bitmap&, char* ); //明文的编码,返回编码长度 0015 extern void decode ( PFCTree*, Bitmap&, int ); //二进制串的解码