单项选择题
有以下程序:
#include<iostream>
using namespace std;
int a;
int fun();
int main()
externint a;
int b;
a=10;
b=fun();
cout<<b<<end1;
return 0;
int fun()
extern int a;
return(10*
A.;
<
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
下列关于类和对象的叙述中,错误的是( )。
A.一个类只能有一个对象
B.对象是类的具体实例
C.类是对某一类对象的抽象
D.类和对象的关系是一种数据类型与变量的关系
点击查看答案&解析
单项选择题
以下程序的正确运行结果是( )。 #include<iostream.h> int fun(int); void main() int a=2,i; for(i=0;i<3;i++) cout<<fun(
A.<<end1;
cout<
点击查看答案&解析
相关试题
有如下程序: #include<iostream> usi...
有如下程序: #include<iostream.h> ...
有如下类说明: class TestClass int x...
有如下程序: #include<iostream> usi...
以下程序的输出结果是( )。 #include...