设计一个日期类Date,数据成员有year、month、day。

日期:2015-04-06 02:19:39 人气:1

设计一个日期类Date,数据成员有year、month、day。

class Date { public: Date(UINT y,UINT m,UINT d); ~Date(); void operator<<(Date); protected: UINT year; UINT month; UINT day; } Date::Date() { year=y; month=m; day=d; } void Date::operator<<(Date date)
    A+
热门评论