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

📄 stdafx.h

📁 利用Huffman编码法做的一个文本文件压缩程序
💻 H
字号:
// stdafx.h : include file for standard system include files,
//  or project specific include files that are used frequently, but
//      are changed infrequently
//

#if !defined(AFX_STDAFX_H__344EE176_614A_4DF2_9AA1_0B4746CBC018__INCLUDED_)
#define AFX_STDAFX_H__344EE176_614A_4DF2_9AA1_0B4746CBC018__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define WIN32_LEAN_AND_MEAN		// Exclude rarely-used stuff from Windows headers

#include <stdio.h>
#include <conio.h>
#include <malloc.h>
#include <math.h>
#include <string.h>

#define  MAX   256				//叶子结点编码的最大长度
#define  STRINGMAX 32767		//字符串的最大长度	

//哈夫曼树结点类型
typedef  struct 
{
	char  ch;
	int weight;
	int lchild,rchild,parent,next;
}HTNODE;

//叶编码类型
typedef struct
{
	char *code;
	char  leaf;
}CODE; 

//便于位操作
typedef unsigned char CODECELL;

// TODO: reference additional headers your program requires here

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_STDAFX_H__344EE176_614A_4DF2_9AA1_0B4746CBC018__INCLUDED_)

⌨️ 快捷键说明

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