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