#include
#include
using namespace std;
int main(){
int S[]={123,234};
cout$amp;for(int i=0;i<2;i++){cout$amp;retum 0;
}
运行时的输出结果是
A. 123
B. ***123
C. ***123
D. ***123 234 234 ***234 234***
查看答案
#include
using namespace std;
class C1{
public:
-Cl()}cout$amp;};
class C2:public C1{
public:
~c2(){cout$amp;};
int main(){
C2 cb2;
C1*cbl:
return 0;
{
运行时的输出结果是
A. 121
B. 21
C. 211 D、12
#include
using namespace std
class A{
public:
virtual void f(){cout$amp;void g(){cout$amp;};
class B:public A{
public:
virtual void f(){cout$amp;void g(){cout$amp;};
void show(A&A){a.f();a.g();}
int main(){
B b;
show(B);
return 0;
}
运行时的输出结果是
A. 12
B. 34
C. 14
D. 32
#include
using narnespace std;
class ONE{
int e;
public:
ONE():c(O){cout$amp;ONE(int n):c(13){cout$amp;};
class TWO{
ONE oriel;
ONE one2,
public:
TWO(int m):one2(m){cout$amp;};
int main(){
TWO t(4);
return O;
}
运行时的输出结果是
A. 3
B. 23
C. 123
D. 213