若有如下程序: void sub() { static int x=8; x/=2;printf("%d",x); }
若有如下程序: void sub() { static int x=8; x/=2;printf("%d",x); } main() { int m; for(m=0;m<2;m++) sub();} 则程序运行后的输出结果是【 】.
若有如下程序: void sub() { static int x=8; x/=2;printf("%d",x); } main() { int m; for(m=0;m<2;m++) sub();} 则程序运行后的输出结果是【 】.
若有如下程序: void sub() {static int x=6; x/=2;printf("%d",x); } main() {int m; for(m=0;m<=2;m++) sub(); } 则程序运行后的输出结果是【 】。
若有如下程序: sub(int*y) {while(--(*y)); printf("%d",(*y)--);} main() { int x=10; sub(&x); } 则程序运行后的输出结果是【 】。
若有如下程序: main() { int x=4,y=1; printf("%d\n",sub(x,sub(x,y))); } sub(int i,int j) { static int a=0; int b=2; a+=i+b; b+=j+a; } 则程序运行后的输出结果是【 】。
A.d
B.e
C.h
D.b
A.5238.41Bh
B.5238.4,Bh
C.5,238.4,B,h
D.5238.41Bh
A. 类Shape是虚基类
B.类Shape是抽象类
C.类Shape中的Draw函数声明有误
D.“Shape s;”能建立Shape的对象s
阅读如下程序; Private Sub Form. Click() msg1$=“继续吗?” msg2$=“操作对话框” r=MsgBox(msg1$,vbYesNo OrvbDefaultButton2,msg2$) End Sub 程序运行后,单击窗体,将产生一个信息框。此时如果直接按回车键,则相当于用鼠标单击信息框中的【 】按钮。
有如下程序: #include<iostream> using namespace std; class B{ public: Virtual void show(){cout<<“B”;} }; class D:publicB{ public: void show(){cout<<“D”;} }; void funl(B*ptr){ptr->show();} void{un2(B&ref){ref.show();} void
A.BBB
B.BBD
C.DBB
D.DBD
有如下的程序片段,该程序片段的执行完后,共执行循环______次。 Private Sub command1_ Click() total =0 Counter = 1 do Print Counter total = total + Counter Print total, "111" Counter = Counter + 1 if total >= 10 then exit do End if Loop while Counter <= 10 End Sub