[Switch] [c ++] on constructors can not have a return type of an error

Transfer: https: //blog.csdn.net/sky_freebird/article/details/6687892

 A constructor can not have a return type, but their definition of a constructor are not supposed to write the return type ah.

The last reason is actually found when the class definition, there is no back together;

Class is class XX {} ​​followed by the ";"

Guess you like

Origin www.cnblogs.com/lyggqm/p/11993565.html