单选题
C++
题号 #2250913
有如下程序:
#include<iostream>
usingnamespacestd;
classTest(
public:
Test( ){}
Test(constTest8Lt){cout<<1;}
};
Testfun(Test&u){Testt=U;returnt;}
intmain( ){Testx,y;x=fun(y);return0;}
运行这个程序的输出结果是( )。
参考答案
C
答案解析
C。【解析】本题调用了fun函数。
你可能感兴趣的试题
A.P8一E4
B.P8一C16一
C.P0一E4一
D.P0一C16—
A.类Person是类Undergraduate的基类
B.类Undergraduate从类Student公有继承
C.类Student是类Person的派生类
D.类Undergraduate是类Person的派生类
A.2332
B.2323
C.3232
D.3223