|
#ifndef __TREE__TEMPLATE__NODE__H__
#define __TREE__TEMPLATE__NODE__H__
#pragma once
template <class T>
class CNode
{
public:
T m_Node ;
CNode *m_pLeft ;
CNode *m_pRight ;
CNode *m_pParent ;
public:
CNode(void) ;
CNode(T &obj) ;
~CNode(void) ;
};
template <class T>
CNode<T>::CNode(void)
{
m_pLeft = NULL ;
m_pRight = NULL ;
m_pParent = NULL ;
}
template <class T>
CNode<T>::CNode(T &obj)
{
m_Node = obj ;
m_pLeft = NULL ;
m_pRight = NULL ;
m_pParent = NULL ;
}
template <class T>
CNode<T>::~CNode(void)
{
}
#endif
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I am currently working with Microsoft at Bangalore (India). My interest lies in areas of generic C++ and windows development. Apart from office hours I try to develop new and useful small tools.
Well, I still feel that I need to be more serious..!