sq-unsq.c
来自「一种算法」· C语言 代码 · 共 37 行
C
37 行
# include <stdio.h>
# include <io.h>
# define WORD unsigned int
# define BYTE unsigned char
# define SUCCESS 0
# define FAILURE 1
typedef struct {
FILE *fp;
WORD buf;
BYTE count;
} bitstream;
static int getbit(bitstream *);
static void initbits(bitstream *, FILE *);
void main (int ac,char **av)
{
long squeeze (FILE *inf,FILE *outf);
int unsqu (FILE *inf,FILE *outf);
FILE *inf,
*ouf1,
*ouf2;
long compr_length,
nocompr_length,
l1, l2,
percent;
WORD m1,m2;
unsigned
lr;
static char
bf1 [512], bf2 [512];
printf ("忇
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?