毕设敦煌壁画网站开发选题背景,网店推广,杭州网络公司联系电话,网站开发系统设计怎么写/*文件中有些参数定义的比较大#xff0c;主要是为了适应较大文件的压缩*/#include#include#include#include//用以删除多余的中间文件#define M 100000000000//最大字符数int op,co[100];//编码表的扫描指针#xff0c;简易栈co[]typedef struct Hfnode //哈弗曼树结点类型{…/*文件中有些参数定义的比较大主要是为了适应较大文件的压缩*/#include#include#include#include//用以删除多余的中间文件#define M 100000000000//最大字符数int op,co[100];//编码表的扫描指针简易栈co[]typedef struct Hfnode //哈弗曼树结点类型{int data;//权值域char zimu;//存储字母struct Hfnode *Lson,*Rson,*next;//儿子链域和森林链域}Hfnode,*Hfptr;typedef struct snode//静态数组结点类型{char c;//字符int f1;//频度}snode;typedef struct Lnode//编码表结点类型{char c;struct Lnode *next;}Lnode,*Lptr;void gotoxy(int x,int y){COORD coord;coord.Xx;coord.Yy;SetConsoleCursorPosition( GetStdHandle( STD_OUTPUT_HANDLE ), coord );}void paint1(){int i,j;for(j0;j4;j){for(i0;i70;i)//简易画线代码呵呵putchar(95);putchar(10);putchar(10);putchar(10);}gotoxy(0,4);printf(请输入需打开的文件路径);gotoxy(0,7);printf(请输入压缩文件的保存路径);gotoxy(0,10);printf(此次文件压缩率为);gotoxy(0,13);}void paint2(){int i,j;for(j0;j4;j)//画4行直线{for(i0;i70;i)//简易画线代码呵呵putchar(95);putchar(10);putchar(10);putchar(10);}gotoxy(0,4);printf(请输入解压文件的路径);gotoxy(0,7);printf(请输入还原文件的保存路径);gotoxy(0,10);printf(还原结果);}int putdata(Lptr strhead)//输入函数{Lptr p;FILE*fp;int i0;char infile[30];pstrhead;gotoxy(0,5);scanf(%s,infile);if((fpfopen(infile,rb))NULL){printf(文件打开错误\n);exit(0);}while(!feof(fp)){p-cfgetc(fp)0xFF;p-nextnew Lnode;pp-next;/*putchar(ch[i]);*/i;}putchar(10);fclose(fp);return(i-1);}int stat(Lptr p,snode ch2[],int num)//统计函数{int i,j,last0;for(i0;i{for(j0;ch2[j].c!p-cj!last;)j;if(jlast){ch2[j].cp-c;ch2[j].f11;last;}else ch2[j].f1;pp-next;}return(last);}void order(snode ch2[],int n)//冒泡排序{int i,j,k,t;char a;for(i0;i{ki;for(ji1;jif(ch2[j].f1if(k!i){tch2[i].f1;ach2[i].c;ch2[i].cch2[k].c;ch2[i].f1ch2[k].f1;ch2[k].ca;ch2[k].f1t;}}}Hfptr i