出现这样的问题 constructors not allowed a return type,是因为类定义或者申明时,结束的地方忘了加个’ ; ‘

错误的举例如:

class ClassName{

}

如上面的定义,需要在类申明结束的部分添加";"结束符号

正确如:

class ClassName{

};
Reference
  1. constructors not allowed a return type错误问题

相关文章:

  • 2021-07-31
  • 2022-12-23
  • 2022-02-16
  • 2022-01-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-31
  • 2021-11-15
  • 2021-06-04
  • 2021-08-17
  • 2022-12-23
  • 2021-12-01
  • 2022-12-23
相关资源
相似解决方案