填空题
下面程序的运行结果是
【8】
#include <iostream>
using namespace std;
int fun(int n)
static int m = 2;
m=m+n;
return m;
int main ( )
int a = 3, b = 4;
int x;
x = fun( a );
x = fun( b );
cout<<x<<end1;
return O;
【参考答案】
I
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
如果类Alpha继承了类Beta,则类Alpha称为派生类,类Beta称为 【9】 类。
点击查看答案&解析
填空题
以下函数的功能是删除字符串s中的所有数字字符。请填空。 void dele (char *s) int n=O; for(i=0;s[i];i++) if( 【7】 ) s[n++]=s[i]; s[n]= ’ 0’;
点击查看答案&解析
相关试题
有以下程序: #include <fstream> #...
若有以下程序: #include <iostream>...
下面程序的输出结果是 【13】 。 #in...
下面程序是一个堆栈的类模板,在横线处填上...
实现编译时的多态性的机制称为 【10】 ...