我很难在Google上找到点击率.
struct a {
float m_x;
float m_z;
public:
a(float x): m_x(x) {}
};
class b : public a {
b(float z): m_z(z) {}
};
Run Code Online (Sandbox Code Playgroud)
在铿锵3.2:
error: member initializer 'm_z' does not name a non-static data member or base class
b(float z): m_z(z) {}
Run Code Online (Sandbox Code Playgroud)