编译C++程序时,遇到如此错误: return type specification for constructor invalid。
结果会出现:return type specification for constructor invalid在网上搜的大部分说是:构造函数不应该有返回值,我检查了一下我的代码没有返回值啊,这时候我发现了一个重大的低级错误:在类声明完毕应该加 分号 。
编译C++程序时,遇到如此错误: return type specification for constructor invalid。
结果会出现:return type specification for constructor invalid打赏作者