2024年4月24日

摘要: 重载(Overloading):所谓重载是指不同的函数实体共用一个函数名称。例如以下代码所提到的CPoint之中,有两个member functions的名称同为x(): 1 class CPoint{ 2 3 public: 4 float x(); 5 void x(float xval); 6 阅读全文
posted @ 2024-04-24 23:00 阮春义 阅读(109) 评论(0) 推荐(1) 编辑
摘要: C++中class与object的语法与语义 阅读全文
posted @ 2024-04-24 18:29 阮春义 阅读(182) 评论(0) 推荐(1) 编辑

导航