填空题
执行下列程序后的输出结果是______。 #include<iostream> using namespace std; int main() { int x=3; int &y=x; y++; cout<<x<<end1; return 0; }
【参考答案】
D
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
有如下程序: #include<iostream> using namespace std; class Base { public: Base (){cout<< Base ;} }; class Derived:public Base { public: Derived(){cout<< Derived ;} }; intmain() { Derived derived; Base *p; P=& derived; return 0; } 执行上面程序的输出是______。
点击查看答案&解析
填空题
若需要把一个函数 void fun(): 定义为一个类TestClass的友元函数,则应在类Testclass的定义中加入一条语句:______。
点击查看答案&解析
相关试题
已知递归函数fun的定义如下: int fun(i...
定义字符指针char *str= hello ,已知...