填空题

常数据成员和静态数据成员在使用前共同的要求是要进行【 】。

【参考答案】

初始化
<上一题 目录 下一题>
热门 试题

填空题
以下程序的输出结果是【 】。#include<iostream.h>voidfun( ){ staticinta=0;a+=2;cout<<a<< ;}voidmain( ){ intcc;for(cc=1;cc<4;cc++)fun( );cout<<endl;}
填空题
下列程序的输出结果是【 】。#include using namespace std;class A{ int a;public:A():a(9){}virtual void print()const{toutprint();show(d1);show(d2);return 0;}
相关试题
  • 以下程序中,fun 函数的功能是求 3 行...
  • 如果类中的一个成员函数的定义实现在类内,...
  • 下列程序段的输出结果是【 】。cout<<fi...
  • 下面程序的运行结果是【 】和【 】。#in...
  • 友元类的所有成员函数都是另一个类的【 】。