class Person{};
你忘了在定义类之后加上;。
c++之报错"不能在构造函数上指定返回类型"
原文:https://www.cnblogs.com/xiximayou/p/12096194.html