?? dtid3.h
字號:
// DTID3.h: interface for the CDTID3 class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_DTID3_H__80362FE1_40FD_11DB_B6E2_444553540000__INCLUDED_)
#define AFX_DTID3_H__80362FE1_40FD_11DB_B6E2_444553540000__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <math.h>
typedef struct Child
{
char value[8];
struct DecisionTree *node;
}ChildNode;
typedef struct DecisionTree
{
char Title[10];
int nChildCount;
ChildNode *child;
}TreeNode;
class CDTID3
{
public:
CDTID3();
virtual ~CDTID3();
public:
int create_tree(ChildNode *child,char *rule,char *avail_att,char *valid,int tab_cnt);
int Chuli(char *valid_2);
int not_all_same(char *valid);
int get_diff_att_types(char *valid,char **att_names,int att,int max_row);
int find_att(char *avail_att,char *valid);
int check_all_negative();
int check_all_positive();
void disaster(int i);
void PrepareID3(char ***string,int height,int width,char **title);
int M1,M2,M3,M4;
private:
FILE * nfp;
FILE * pfp;
FILE * ofp;
int rows;
char ** title1;
int attributes;
char *** string1;
};
#endif // !defined(AFX_DTID3_H__80362FE1_40FD_11DB_B6E2_444553540000__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -