摘要:
一、组合与继承 举例: 1 #include <iostream> 2 3 class CPerson { 4 public: 5 CPerson() {} 6 ~CPerson() {} 7 //获取性别 8 int GetGender() { 9 return m_nGender; 10 } 1 阅读全文
posted @ 2020-10-15 10:23
朱果果
阅读(151)
评论(0)
推荐(0)
摘要:
举个🌰 #include <stdlib.h> #include <iostream> #include <string> using namespace std; class CStudent { public: CStudent() { cout << "CStudent()\r\n"; } 阅读全文
posted @ 2020-10-15 09:12
朱果果
阅读(133)
评论(0)
推荐(0)

浙公网安备 33010602011771号