单项选择题
有如下程序:
#include <iostream>
using namespace std;
class Baseprivate:
char c;
public:
Base(char n) :c(n)
~Base()
cout<<c;
;
class Derived: public Baseprivate:
char c; public:
Derived(char n):Base(n+1),c(n)
~Derived()
cout<<c;
;
int main () Derived obj (’x’);
return 0;执行上面的程序净输出
A.xy
B.yx
C.x
D.y
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
以下程序的输出结果是#include <iostream>using namespace std;int main() cout.fill('*'); cout.width(5); cous<<hex<<100<<end1; return 0;
A.**100
B.***64
C.100**
D.64***
点击查看答案&解析
单项选择题
下列叙述中正确的是
A.用E-R图能够表示实体集之间一对一的联系、一对多的联系、多对多的联系
B.用E-R图只能表示实体集之间一对一的联系
C.用E-R图只能表示实体集之间一对多的联系
D.用E-R图表示的概念数据模型只能转换为关系数据模型
点击查看答案&解析
相关试题
下面程序的输出结果是 【15】 。#incl...
下列程序的输出结果是 【14】 。#incl...
下面程序的输出结果为:Base:: fun,请...
C++中,设置虚基类的目的是 【11】 。
多态性分为两类:编译时的多态性和 【10...