填空题

构造函数与析构函数所调用的虚函数是 [11] 的函数, 因此调用时实现的是 [12] 联编。

【参考答案】

[11]所在的类 [12]静态
<上一题 目录 下一题>
热门 试题

填空题
从键盘上输入XXYYZZXYZWXP和X,以下程序的输出结果是 [9] 。#include<iostream.h>#include<string.h>void main(){char*str,ch;int count=0,pos;cin>>str>>ch;pos=strlen(str)-1;while(pos>=0){if((str[pos])=ch)count++;pos--;}cout<< count= <<count;}
填空题
下列程序的输出结果是 [10] 。#include<iostream.h>#include<string.h>void main(){char b[30];strcpy(&b[0], XY );strcpy(&b[1], YZW );strcpy(&b[2], ZXY );cout<<b<<end1;}
相关试题
  • 定义重载函数时,应在参数个数或参数类型上...
  • 下面程序要实现的功能是打开当前目录下的文...
  • 每个对象都维护了一个指向自身的指针,这个...