2019年4月30日
摘要: //info.h#ifndef INFO_H #define INFO_H #include using std::string; class Info { public: Info(string nickname0, string contact0, string city0, int n); void print(); p... 阅读全文
posted @ 2019-04-30 15:05 happy-every-day 阅读(83) 评论(0) 推荐(0) 编辑
摘要: //date.h#ifndef DATE_H #define DATE_H class Date { public: Date(); // 默认构造函数,将日期初始化为1970年1月1日 Date(int y, int m, int d); // 带有形参的构造函数,用形参y,m,d初始化年、月、日 void display(); /... 阅读全文
posted @ 2019-04-30 14:48 happy-every-day 阅读(57) 评论(0) 推荐(0) 编辑