📄 haffuma.cpp
字号:
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<ctype.h>
int n;
struct node{
int w;
int flag;
char c;
struct node *plink,*llink,*rlink;
char code[50];
}*num[100],*root;
FILE *fp;
char tmpcode[50];
int t=0;
int main(void)
{
int i;
void settree();
void code();
void decode();
void disp() ;
root=(struct node*)malloc(sizeof(struct node));
puts("*******************hfm edit/encode demonstration******************************");
while(1){
start:
puts("1. Initrialization 2.display the list of decoding 3. end");
while(scanf("%d",&i)!=1)
{
while(getchar()!='\n')
continue;
puts("input errors!");
puts("reinpuf");
puts("1. Initrialization 2.display the list of decoding 3. end");
}
switch (i)
{
case 1:
settree();
break;
case 2:
disp();
break;
case 3:
exit(0);
default:
puts("input errors
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -