下列程序的运行结果是( )。# include <iostream.h>clas
问题:
下列程序的运行结果是( )。# include <iostream.h>class A{int a;public:A( ) {a=0;}A(int aa){a=aa;cout << a++;}};void main( ){A x,y (2),z(3);cout << endl;}
A.0
B.23
C.34
D.25
下列程序的运行结果是( )。# include <iostream.h>class A{int a;public:A( ) {a=0;}A(int aa){a=aa;cout << a++;}};void main( ){A x,y (2),z(3);cout << endl;}
A.0
B.23
C.34
D.25