?? 決策樹.h
字號:
// 決策樹.h : PROJECT_NAME 應用程序的主頭文件
//
#pragma once
#ifndef __AFXWIN_H__
#error "在包含此文件之前包含“stdafx.h”以生成 PCH 文件"
#endif
#include "resource.h" // 主符號
#define YOUTH 0
#define MIDDLE_AGED 1
#define SENIOR 2
#define HIGH 0
#define MEDIUM 1
#define LOW 2
#define NO 0
#define YES 1
#define FAIR 0
#define EXCELLENT 1
#define ATTRIBUTE_NUM 5
#define MAX_DISCRETE 3
// C決策樹App:
// 有關此類的實現,請參閱 決策樹.cpp
//
typedef struct DNode
{
int attribute[ATTRIBUTE_NUM];
DNode* next;
}DNode,*pDNode;
typedef struct Attribute
{
CString strName;
bool bSplitted;
}Attribute,*pAttribute;
typedef struct TreeNode
{
bool bIsLeaf;
int leaf;
int AttributeID;
TreeNode *p[MAX_DISCRETE];
}TreeNode,*pTreeNode;
class C決策樹App : public CWinApp
{
public:
C決策樹App();
// 重寫
public:
virtual BOOL InitInstance();
// 實現
DECLARE_MESSAGE_MAP()
};
extern C決策樹App theApp;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -