types.h

来自「数据格式检查算法」· C头文件 代码 · 共 32 行

H
32
字号
#ifndef __TYPES_H__
#define __TYPES_H__

typedef  char	Boolean;

/* 数据条信息 --- 存储的是各个属性取值的序号 --- 具体取值可以从 AttValName 中获取 */
typedef  union  _attribute_value
 {
    short	_discr_val;
    float	_cont_val;
 } AttValue, *Description;

#define  CVal(Case,Attribute)   Case[Attribute]._cont_val
#define  DVal(Case,Attribute)   Case[Attribute]._discr_val
#define  Class(Case)		    Case[AttNum+1]._discr_val

#define  Unknown        -999	/* Unknown value for continuous attribute */
#define  BrDiscr	    1	    /* node types:	branch */
#define  ThreshContin	2	    /* threshold cut */

/* 数据属性值的特殊情况 */
#define  IGNORE		1	
#define  DISCRETE	2	
#define  CONTINUOUS	3	
#define  SET	    4	

#define	 NIL		0   /* 空指针 */

#define	 FALSE		0 
#define	 TRUE		1 

#endif /* __TYPES_H__ */

⌨️ 快捷键说明

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