你可能感兴趣的试题
x1=10,x2=2 x1=12,x2=10 x1=12,x2=2 x1:2,x2=2
x1=10,x2=2 x1=12,x2=10 x1=12,x2=2 x1=2,x2=2
x1=10,x2=2 x1=12,x2=10 x1=12,x2=2 x1=2,x2=2
x1=10,x2=2 x1=12,x2=10 x1=12,x2=2 x1=2,x2=2
x=12,y=12 x=5,y=5 x=12,y=5 x=5,y=12
static X x1 public X x1=new X(int 123); Y x1; X x1;X( );
x1=10,x2=2 x1=12,x2=10 x1=12,x2=2 x1=2,x2=2
x1=10,x2=2 x1=12,x2=10 x1=12,x2=2 x1=2,x2=2
x1=10,x2=2 x1=12,x2=10 x1=12,x2=2 x1=2,x2=2
A()A(int i)x1=i;void dispa()cout<<"x1="<<x1<<",";private: int x1; ; class B:public Apublic: B() B(int i):A(i+10)x2=i;void dispb()dispa(); cout<<"x2="<<x2<<endl;pnvate: int x2; ; int main()B b(2); b.dispb(); return 0;程序运行后的输出结果是( )。 x1=10,x2=2 x1=12,x2=10
x1=10,x2=2 x1=12,x2=10 x1=12,x2=2 x1:2,x2=2