我有一个节点类型的列表。我想设置一个临时Node等于List前面的Node,如下:
class Node
{
public:
Node();
Node& operator = (const Node& n);
};
但我不断收到链接器错误:
链接...
main.obj:错误 LNK2019:未解析的外部符号“public:class Node & __thiscall Node::operator=(class Node const &)”(??4Node@@QAEAAV0@ABV0@@Z) 在函数中引用“ void __cdecl fillScan(int,class std::list >)" (?fillScan@@YAXHV?$list@VNode@@V?$allocator@VNode@@@std@@@std@@@Z)
C:\Users \Aaron McKellar\Documents\School Stuff\CS445\Test\Debug\Test.exe : 致命错误 LNK1120: 1 unresolved externals
提前致谢!