错误 1 error LNK2019: 无法解析的外部符号 "public: __thiscall Distance::Distance(int)" (??0Distance@@QAE@H@Z),该符号在函数 _main 中被引用

错误:

错误 1 error LNK2019: 无法解析的外部符号 "public: __thiscall Distance::Distance(int)" (??0Distance@@QAE@H@Z),该符号在函数 _main 中被引用 F:\record\cpp\06-运算符重载\01-基本概念和语法\01-基本概念和语法\temp.obj 01-基本概念和语法

错误原因:

类中定义了构造函数或析构函数,但还没有被实现。

 

posted @ 2018-06-22 10:46  夜行过客  阅读(595)  评论(0编辑  收藏  举报