请帮我看看这个代码怎么使用啊!!!

来源:百度知道 编辑:UC知道 时间:2024/09/22 04:33:01
编译运行都没错,但是我不知道怎么使用。
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

#define hashsize 4096
#define clear 256
#define teminate 257
#define not_used -1
#define MAXVAL(n) (( 1 <<( n )) -1)
#define max_bits 12

FILE *in;
FILE *out;
int bitsize = 9;
int maxcode;
typedef struct prex_cha{
int value;
unsigned int prefix;
unsigned int character;
}Hash_Table;
Hash_Table Hash_table[hashsize];
void initial_hashtable ()/*字典初始化*/
{int i;
for (i=0; i<hashsize; i++)
{Hash_table[i].value = not_used;}
}
void output (unsigned int code)
{static int count = 0;
static unsigned long buffer = 0L;
buffer |= (unsigned long) code << (32 - bitsize - count);
count += bitsize;
while (count >= 8)
{fputc

如何使用就只需要看main函数里面了
这个需要在命令行里面输入
开始->运行->输入cmd->确定,然后把这个程序编译的exe文件拖到cmd窗口
-> 打一个空格 后面跟文件名


Microsoft Windows [版本 6.0.6001]
版权所有 (C) 2006 Microsoft Corporation。保留所有权利。

C:\Users\hp>text.exe yourfilename