下面程序的含义,最好添加一下程序的注释

来源:百度知道 编辑:UC知道 时间:2024/06/06 04:42:58
#include "stdafx.h"
#include "AiTree.h"
#include "AiRule.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

IMPLEMENT_SERIAL(AiTree,CObject,0)

AiTree::AiTree()
{
m_id = 0;
m_sign = NeedNotVersa;
m_lch = NULL;
m_rch = NULL;
m_mention = "";
}
AiTree::~AiTree()
{
if (m_lch != NULL)
delete m_lch;
//if (m_rch != NULL)
// delete m_rch;
}
void AiTree::SetId(int id)
{
m_id = id;
}
int AiTree::GetId()
{
return m_id;
}
AiTree* AiTree::GetLch()
{
return m_lch;
}
AiTree* AiTree::GetRch()
{
return m_rch;
}
int AiTree::GetSign()
{
return m_sign;
}
void AiTree::SetLch(AiTree* l)
{
m_lch = l;
}
void AiTree::SetRch(AiTree* r)
{
m_rch =

说实话不知道,建议去专业的编程论坛

编程论坛 非常不错 http://www.programbbs.com
讨论区 http://www.programbbs.com/bbs 注册稍严格,但是论坛回复率很高。

深奥~~~