摘要:
案例二 本案例的核心要点是: 在类中可以让另一个类作为本类中的成员 # include<iostream> using namespace std; class Point{ public: void setX(int x){ m_X = x; } int getX(){ return m_X; } 阅读全文
摘要:
案例一 # include<iostream> using namespace std; class Cube{ public: void setL(int l){ m_L = l; } void setW(int w){ m_W = w; } void setH(int h){ m_H = h; 阅读全文