开发者

getting an error during overloading the operations

开发者 https://www.devze.com 2023-02-20 13:28 出处:网络
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

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

精彩评论

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

关注公众号