The Third Day

    今天星期天,刚来了两天就放假了,感觉挺好玩的,昨天晚上买了一只小鸭子,并吃不了,所以留了下来,然后昨天晚上正常的生活就是,看了十几集银魂,and玩了几局王者和吃鸡,还看了一会小说,感觉还算是可以吧。最后睡觉了。

    星期天早上,忘记几点醒了,然后开始在床上玩王者,还有小说等等,等到烦了就起床开始洗刷,再玩一会然后出去吃饭,到底做了些什么事情我也记不清了,毕竟是补上的日记,最主要的是王者上了钻一吧,还有其他的什么就不清楚了,然后碌碌无为一天就这样过去了,挺好的,感觉人生吧,就是这样,不是说变就变,也不是不想变就不变,我命由我不由天,多么美好的想法啊,与人斗,与天斗,到头了,还是一直跟着命运的方向在走,根本自己阻止不了什么,行吧,本来就是这样,为什么要想着去改变呢,累不累,顺其自然不是很好嘛,就这样吧。

    过了一天丝毫没有什么改变的生活,不过我阿珂的皮肤好像快要能够换到了,也还是不错的吧,下个星期就差不多了,等着试试手感吧,可能会蛮爽的,今天就这样。

C++ defines a class DateV3 with the following: private member variables: int year, month, day; Has three constructors and one destructor as follows: The first constructor takes three parameters, int y, int m, int n; The second is the copy constructor that takes a DateV3 object as the parameter; The third is the default constructor that takes no parameter; The destructor takes no parameter. (3) Has overloaded operators: int operator-(DateV3 & oneDate); // return difference in days between the calling object and oneDate DateV3 operator+(int inc); // return a Date object that is inc days later than the calling object DateV3 operator-(int dec); // return a Date object that is dec days earlier than the calling object DateV3 operator++(); // overload the prefix ++ operator DateV3 operator++(int); // overload the postfix ++ operator friend ostream& operator<< (ostream& outputStream, DateV3& theDate); // overload the << operator Test class DateV3 in the main function as follows: Declare and initialize an object to represent today, which should be the date that you work on this assignment.Declare and initialize an object to represent your OWN birthday.Express John’s birthday given John is 5 days older than yours. Create Tom’s birthday by using the copy constructor, assuming Tom has the same birthday as you. Display how many days have passed since your birth, John’s birth, and Tom’s birth, respectively. Create an DateV3 object, someday, by cloning Tom’s birthday. Increment someday by the prefix operator ++ once, and by postfix operator ++ once.Display someday, today, your birthday, John’s birthday, and Tom’s birthday. Declare a DateV3 object to represent 28 February 2024, display it, apply the prefix ++ operator on it, display it again, and apply the postfix ++ operator on it and display it again.
最新发布
06-12
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值