classtreenode.cpp

来自「用来文本分类的」· C++ 代码 · 共 39 行

CPP
39
字号
// lassTreeNode.cpp: implementation of the ClassTreeNode class.
//
//////////////////////////////////////////////////////////////////////

#include "ClassTreeNode.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

ClassTreeNode::ClassTreeNode()
{
	pParent=NULL;
	pFirstChild=NULL;
	pNextSibling=NULL;
	nDimOfVector=-1;//if the node is not trained ,set nDimOfVector -1
	pTFArray=NULL;

}

ClassTreeNode::ClassTreeNode(int nDimOfVector,CString strKindName)
{
	pParent=NULL;
	pFirstChild=NULL;
	pNextSibling=NULL;
	this->nDimOfVector=nDimOfVector;//if the node is not trained ,set nDimOfVector -1
	this->KindName=strKindName;
	pTFArray=NULL;

}


ClassTreeNode::~ClassTreeNode()
{
	if(pTFArray!=NULL)
		delete[] pTFArray;
		
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?