单项选择题
以下程序的输出结果是 ______。 #include<iostream.h> Int f(){ static int i=0; int a=1; a+=; i++; return a; } void main() { int i,s=0; for(i=0;i<4;i++) s+=f(); cout<<s;
A.10
B.15
C.21
D.28
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
下面对结构或类中成员的访问中,不正确的访问是 ______。
A.*pointe salary;(其中pointer为指向类对象的指针)
B.pointer->salary;
C.x=orker,salary;(其中worker为具有类类型的对象)
D.Location &rA=A1;Int x=r GetX();(Location为已定义的类,A为对象)
点击查看答案
相关试题
构造函数与析构函数所调用的虚函烽是所在类...
一个抽象类的派生类可以实例化的必需条件是...
请分析下面的程序并给出该程序的执行结果 ...
下列程序的输出结果是 [12] 。#incl...
写出下列程序的运行结果 [11] 。#in...