填空题

执行下列语句后,输出的结果为______。 void run() { static int x=3; x++; cout<<x<<" "; } int main() { for(int i=0;i<2;i++) fun(); return D; }

【参考答案】

4,5
<上一题 目录 下一题>
热门 试题

填空题
执行下列语句后,输出结果为______。int a=0,b=2,c=3;switch(a){case 0:switch(b){case 1:cout<<’*’;break;case 2:tout<<’%’;break;}case 1:switch(C) {case 1:cout<<’$’;break;case 2:cout<<’*’;break;default:tout<<’#’;}}
填空题
非成员函数必须声明为类的______才能访问这个类的private成员。
相关试题
  • 执行下列程序段以后程序的输出是_____...
  • 对于枚举类型的定义语句enum Week{Sun,T...
  • 执行下列语句段后程序的输出结果是____...
  • 有如下程序:#include<iostream>using ...
  • C++中多态性分为编译时的多态性和运行时...