main.cpp

来自「哈夫曼的编译码问题」· C++ 代码 · 共 24 行

CPP
24
字号
#include"HaffMan.h"
void main()
{
	int a;
	char c,str[10];
	memset(str,0,sizeof(str));
	Haffman haffman;	
   haffman.HaffManC();
   haffman.HaffCodeD();
    cout<<"是否要打印哈夫曼编码树?"<<endl;
	cin>>str;
    if(strcmp(str,"Yes")==0)	
	{
	a=haffman.Get();
    haffman.HaffCodeT(a,0);
	}
	cout<<"是否要打印file不同字符的编码?"<<endl;
	cin>>str;
    if(strcmp(str,"Yes")==0)
    haffman.HaffCodeP();
    //haffman.HaffCodeT(a,0);

}
    

⌨️ 快捷键说明

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