#include <iostream.h> class shu { private: int x,y; public: shu(int a,int b) { x=a; y=b; cout<<"在带参数构造函数"<<endl; } shu(const shu &l) { x=l.x; y=l.y; cout<<"在复制构造函数"<<endl; } shu() { cout<<"在无参构造函数"<<endl; } ~shu() { cout<<"在析构函数"<<endl; } display() { cout<<"x="<<x<<" y="<<y<<endl; } }; void main() { shu d(15,20); shu e=d; d.display(); e.display(); shu c[2]; }