摘要: #include #include using namespace std; class A{ public: A(void) { cout << "A::A(void)" << this << endl; } ~A(void) { cout << "A::~A(void)" << this << endl; ... 阅读全文
posted @ 2019-04-07 20:31 鸿蒙过客 阅读(74) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; class Point2D{ public: Point2D(int x, int y):m_x(x), m_y(y){} friend ostream& operator<<(ostream& os, Point2D& p2) { return os<<"2D(" << p2.m_x ... 阅读全文
posted @ 2019-04-07 19:16 鸿蒙过客 阅读(84) 评论(0) 推荐(0) 编辑