Fork me on GitHub
摘要: 5. Constructor(构造函数) If a class has a constructor, the compiler automatically calls that constructor at the point an object is created, before client 阅读全文
posted @ 2022-05-11 18:35 小a的软件思考 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 4. 成员变量 4.1 Fields, parameters, local variables All three kinds of variable are able to store a value that is appropriate to their defined type. 4.1.1 阅读全文
posted @ 2022-05-11 16:45 小a的软件思考 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 3. 自动售票机例子 TicketMachine.h #ifndef TICKETMACHINE_H_ #define TICKETMACHINE_H_ class TicketMachine { public: TicketMachine(); virtual ~TicketMachine(); 阅读全文
posted @ 2022-05-11 14:19 小a的软件思考 阅读(46) 评论(0) 推荐(0) 编辑