摘要: Consider: class Date { }; // for dates in time class Customer { public: //... // as before private: std::string name; Date lastTransaction; }; class P 阅读全文
posted @ 2021-08-31 10:51 MyCPlusPlus 阅读(45) 评论(0) 推荐(0)
摘要: An assignment to self occurs when an object is assigned to itself: class Widget { ... }; Widget w; //... w = w; // assignment to self If you try to ma 阅读全文
posted @ 2021-08-31 10:50 MyCPlusPlus 阅读(59) 评论(0) 推荐(0)