单项选择题
下面程序的运行结果为
#include<iostream. h>
class A
public:
A( ) cout < <"1";
~A( ) cout < <"2";
;
class B:public A
public:
B( ) cout < <"3";
~B( ) cout < <"4";
;
void main( )
B b;
A) 1234 B) 1324 C) 1342 D) 3142
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
下列选项,不正确的是 A) for(inta=1;a<=10;a++) ; B) int a=1; do a++; while(a<=10) ; C) int a=1; while(a<=10) a++; D) for(int a=1;a<=10;a++) a++;
点击查看答案&解析
单项选择题
下列程序的输出结果为 #include<iostream.h> void main( ) char * a[ ] = hello, the , world ; char * * pa=a; pa++; cout < < * pa < < endl; A) hello B) the C) world D) hellotheworld
点击查看答案&解析
相关试题
下列程序的运行结果为 #include<iostrea...