treenode.h
来自「A simple decision tree c++ implementatio」· C头文件 代码 · 共 33 行
H
33 行
// TreeNode.h: interface for the TreeNode class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_TREENODE_H__9D1BC16A_8BBF_47A2_81D2_9D10927220B0__INCLUDED_)
#define AFX_TREENODE_H__9D1BC16A_8BBF_47A2_81D2_9D10927220B0__INCLUDED_
#include <string>
using namespace std;
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
//forward declaration
class TreeNode;
class TreeNode
{
public:
TreeNode(int nodeID, string newQorA);
TreeNode();
virtual ~TreeNode();
string m_strQuestOrAns;
int m_iNodeID;
//the pointers to the two nodes for the yes no question or answer states
//remember the uniform design of the BDT requires two branches at each node.
TreeNode* m_pYesBranch;
TreeNode* m_pNoBranch;
};
#endif // !defined(AFX_TREENODE_H__9D1BC16A_8BBF_47A2_81D2_9D10927220B0__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?