判断下面程序编译是否正确 如果错误简要说明原因 class B{ public: B(int a){ x=a; } private: i
已帮助 人
判断下面程序编译是否正确,如果错误简要说明原因 class B{ public: B(int a){ x=a; } private: int x; }; class D : public B{ public: D(int a ) : y(a){ } private: int y; };

回答
共1条回复-
#define b 2 int x = b; void main() { x++; }
