error C2533: ' ::{ctor}' : constructors not allowed a return type

error C2533: ' ::{ctor}' : constructors not allowed a return type

出现这个错误是因为在定义的类体中,在最后少了个分号“

class

{

private:

public:

};

你可能感兴趣的:(c,Class)