这会打印有关限定符的错误消息,但并不真正理解这意味着什么以及如何调整代码以使其正常工作?无论如何,非常感谢您查看代码。
注意: ostream 运算符在 Node 类中是友好的。
using namespace std;
ostream& operator(ostream& output, const Node* currentNode)
{
   return output;
}
void Node::nodeFunction()
{
   //This node has items attached to the 'this' statement. After
   //the necessary functions, this is called to output the items.
   cout << this;
}