河南成教 / 面向对象程序设计
25[分析题]
#include<iostream.h> class A { int a,b; public: A(int aa=0,int bb=0):a(aa),b(bb){ cout<<”Constructor!”<<a b<<endl; }}; void main(){ A x, y(2,3), z(y); }
25[分析题]
#include<iostream.h> class A { int a,b; public: A(int aa=0,int bb=0):a(aa),b(bb){ cout<<”Constructor!”<<a b<<endl; }}; void main(){ A x, y(2,3), z(y); }
参考答案:
佳题速递: