单项选择题
有如下程序:
#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图表示的概念数据模型只能转换为关系数据模型
点击查看答案&解析
相关试题
若有以下程序:# include <iostream>u...
有如下程序#include <iostream>using ...
设有以下定义和程序:#include<iostream...
有以下程序:#include <iostream>#inc...
有以下程序#include <iostream>using ...