📄 treenode.cpp
字号:
// TreeNode.cpp: implementation of the TreeNode class.
//
//////////////////////////////////////////////////////////////////////
#include "TreeNode.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
TreeNode::TreeNode()
{
//set the objects pointers to NULL in default constructor
m_pYesBranch = NULL;
m_pNoBranch= NULL;
m_iNodeID = 0;
}
TreeNode::~TreeNode()
{
}
TreeNode::TreeNode(int nodeID, string newQorA)
{
//create a tree node with a specific node id and string
m_iNodeID = nodeID;
m_strQuestOrAns = newQorA;
//ensure pointers are set to NULL in the new node
m_pYesBranch = NULL;
m_pNoBranch= NULL;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -