题目内容
(请给出正确答案)
[单选题]
对于下面的代码,说法正确的是 class A { public: A(int a = 0) { x = a; } static void f1() { y++; }; private: int x; static int y; }; int main() { A::f1(); return 0; }
A.Precompile阶段报错
B.compile阶段报错
C.link阶段报错
D.编译后执行的时候报错
提问人:网友cz2006208307
发布时间:2022-01-07