stdafx.h

来自「利用Huffman编码法做的一个文本文件压缩程序」· C头文件 代码 · 共 48 行

H
48
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?