⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.c

📁 用c++实现文件的压缩
💻 C
字号:

#include <stdio.h>
#include <string.h>
#include "chcode.c"

main()
{  unsigned char * instream;
   long i,length;
   FILE * fp;
   

   fp=fopen("c:\\test.txt","r");
   fseek(fp,0L,2);
   length=ftell(fp);
   fseek(fp,0l,0);
   fclose(fp);
   printf("length=%ld",length);

    
   length=compress_code( instream,length);
   length=uncode_expand( instream,length);
   for( i=1;i<=length;i++ ) putc( * instream++, stdout );
   free( (unsigned char *)instream);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -