用华中数控,编程。大神请赐教,必采纳。😑

如题所述

template
class TreeNode{
public:
T data;
int index;
int active;
TreeNode & operator=(TreeNode & treenode)
{
this->data=treenode.data;
this->index=treenode.index;
this->active=treenode.active;
return *this;
}
};
温馨提示:答案为网友推荐,仅供参考
相似回答