📄 types.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -