如何解决3个问题???
sutd.obj : error LNK2005: "public: int __thiscall Score::score(void)" (?score@Score@@QAEHXZ) already defined in score.obj
sutd.obj : error LNK2005: "public: void __thiscall Score::print(void)" (?print@Score@@QAEXXZ) already defined in score.obj
Debug/sutd.exe : fatal error LNK1169: one or more multiply defined symbols found
[解决办法]
代码,,,,,,,,,
[解决办法]
重复定义了,可能是在声明class的时候把相应函数实现了,但在CPP文件中又实现了一次
[解决办法]
可能是你在本身的类里面定义自身的对象,可以改为指向自身的指针。也有可能你的头包含文件包含有重复的变量
[解决办法]
肯定是重复定义了,。。。。