填空题
假定q所指对象的值为25,q+1所指对象的值为46,则执行"(
*
q)++;"语句后,q所指对象的值为______。
【参考答案】
Z
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有如下程序; #include <iostream> using namespace std; class Base { public; Base(inti){x=i;} void dispa0{cout<<x<<’,’;} private; int x; }; class Derived;public Base { public; Derived(int i);Base(i+10) {x=i;) void dispb(){dispa();cout<<x<<end1;} private; int x; }; int main() { Derived b(2) ; b.dispb(); return 0; } 运行的结果是( )。
A.2,2
B.12,2
C.12,10
D.10,2
点击查看答案&解析
填空题
含有纯虚函数的类称为______。
点击查看答案&解析
相关试题
已知递归函数fun的定义如下: int fun(i...
定义字符指针char *str= hello ,已知...
执行下列程序后的输出结果是______。...
有如下程序: #include<iostream> usi...
若需要把一个函数 void fun(): 定义...