首页 > 职业考试题库1 > 题目详情
下列程序的输出结果是( ) #include usingnamespacestd
题目内容:
[试题]下列程序的输出结果是 ( )
#include
using namespace std;
class A{
int a
public:
A.():a(9){}
virtual void print() const {cout<};
class B:public A{
char b;
public:
B.(){b= ‘S’;}
void print()const{cout<};
void show(Aa&X){X,print()}
int main()
{ Ad1;*p;
B.d2;
p=&d2;
d1,print();
d2,print();
p->print();
show(d1);
show(d2);
return 0;}
本题链接: