开发者

getting an error during overloading the operations

SOLVED

I'm writing a code for making Set by linked lists in C++ with visual C++ 2010. when I want to overload the operations I get this Error

1>test.obj : error LNK2019: unresolved external symbol "public: __thiscall MySet::MySet(class MySet const &)" (??0MySet@@QAE@ABV0@@Z) referenced in function "public: c开发者_JAVA百科lass MySet __thiscall MySet::operator=(class MySet)" (??4MySet@@QAE?AV0@V0@@Z)

please help me. how should I get read of this error


Have you declared and defined the following constructor method?

MySet::MySet(const MySet &other)
{
    ....
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜