跟着视频一步步代码都对,结果报错了,请问出现的multiple definition of 'Student::treat()'怎么解决
你定义了两个 'Student::treat()'
每个函数分别加上static之后再运行试试