64,639
社区成员
发帖
与我相关
我的任务
分享
typedef struct
{
int year;
int mouth;
int day;
int hour;
int minute;
int second;
} Time, *pTime;
bool operator > (const Time & t1, const Time & t2)
{
return !(t1 < t2);
}
bool operator < (Time t1, Time t2)
{
return t1.year < t2.year && t1.mouth < t2.mouth && t1.day < t2.day && t1.hour < t2.hour && t1.minute < t2.minute && t1.second < t2.second;
}