求告知怎么用栈实现计算器的加法功能 不要程序 要思路

2025-04-09 01:41:04
推荐回答(1个)
回答1:

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;
}
};