摘要:
我只是挑着我不太会的地方整理,可能比较基础。类的继承主要分为三类,公有继承,私有继承,保护继承。然后主要记录一下不同的继承方法对派生类的不同作用。1,派生类私有继承于基类。这个时候,派生类继承了基类的公有部分和保护部分,并且继承的这一些数据成员以私有部分存在于派生类中... 阅读全文
posted @ 2018-07-05 22:31
Let_Life_Stop
阅读(2239)
评论(0)
推荐(0)
摘要:
话不多说,先上代码 #include#include#include#include#includeusing namespace std;class Date{private: int year,month,day;public: Date():year... 阅读全文
posted @ 2018-07-05 17:43
Let_Life_Stop
阅读(829)
评论(0)
推荐(0)
摘要:
#include#include#include#include#includeusing namespace std;class Date{public: int day,month,year; void init(int,int,int ); v... 阅读全文
posted @ 2018-07-05 16:29
Let_Life_Stop
阅读(220)
评论(0)
推荐(0)
摘要:
#include#include#include#include#include# define maxn 1010using namespace std;bool IsExit[maxn];int num;class TimetoDay//小时转换为天数{publi... 阅读全文
posted @ 2018-07-05 12:09
Let_Life_Stop
阅读(145)
评论(0)
推荐(0)

浙公网安备 33010602011771号