📄 input.c
字号:
#include "head.h"#include "struct.h"#include "declare.h"void Input(CharArr *ch){ HuffmanTree HT; HuffmanCode HC; int i; char temp; for(i=0;;i++) { getchar(); printf("Please input the word, end with '#':"); scanf("%c",&temp); if(temp=='#')break; ch->e[i].c=temp; printf("Please input the weight:"); scanf("%d",&ch->e[i].w); ch->size++; } HT=HuffmanCoding(HT, HC, ch);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -