摘要:
#include #include using namespace std; class A{ public: A(void) { cout << "A::A(void)" << this << endl; } ~A(void) { cout << "A::~A(void)" << this << endl; ... 阅读全文
摘要:
#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 ... 阅读全文