[求助]定义类出错了?
定义了一个类CTreeNode,编译时居然出现'CTreeNode' : 'class' type redefinition
检查后没有发现什么问题,但VC6说重定义,请高手指教一下这是什么问题。。
代码如下:
class CTreeNode
{
public:
CTreeNode() ;
CTreeNode(char d) ;
CTreeNode(CTreeNode *left, CTreeNode *right, char d) ;
CTreeNode *&GetLeft() ;
CTreeNode *&GetRihgt() ;
public:
char data ;
private:
CTreeNode *child_l ;
CTreeNode *child_r ;
};
谢谢了先~~~~~