有如下程序: #include<iostream> using namespace std; classBase{ public: void fun
A. Base.fun;
B.Base::fun;
C.Base—>fun;
D.fun;
A. Base.fun;
B.Base::fun;
C.Base—>fun;
D.fun;
A、666
B、667
C、676
D、677
A、printf("%c",class[3].name);
B、printf("%c",class[3].name[1]);
C、printf("%c",class[2].name[1]);
D、printf("%c",class[2].name[0]);
A、输出Test
B、无输出结果.
C、编译错误,不能在静态上下文环境中引用 this
D、无构造方法,不能创建对象
A、2 2 2
B、2 3 3
C、2 2 3
D、3 4 4
A、5abcabc
B、10abcabc
C、10defdef
D、5abcabcdef
A、2null
B、3null
C、3days
D、编译错误
下列程序运行结果是 。 class CShape { private: int x,y; public: CShape(int xx,int yy){x=xx;y=yy;} virtual double Area(){return 0;} }; class CCircle:public CShape { private: int r; public: CCircle(int xx,int yy,int rr):CShape(xx,yy){r=rr;} virtual double Area(){return 3.14*r*r;} }; void f1(CShape &sp) { cout< <sp.area()> < <endl; } void f2(cshape sp) { main() ccircle c(10,10,1); f1(c); f2(c);>
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!