これは修飾子に関するエラーメッセージを出力しますが、それが何を意味するのか、そしてそれが機能するようにコードを調整する方法を本当に理解していませんか?とにかく、コードを見てくれてありがとう。
注: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;
}