#include <iostream>using namespace std;class Point{public: Point(int cx,int cy):x(cx),y(cy){ pData=new int; *pData = 0; } Point(const Point& pt) //copy constructor { x=pt.getX(); this->y=pt.getY(); pData=new int; *pData=pt.getData(); } voi... Read More
posted @ 2012-04-09 11:24 庚武 Views(261) Comments(0) Diggs(0)