由买买提看人间百态

topics

全部话题 - 话题: nmemb
(共0页)
g**********y
发帖数: 423
1
千老干的活是这样的:
struct TIME
{
int seconds;
int minutes;
int hours;
};
void computeTimeDifference(struct TIME t1, struct TIME t2, struct TIME *
difference){
if(t2.seconds > t1.seconds)
{
--t1.minutes;
t1.seconds += 60;
}
difference->seconds = t1.seconds - t2.seconds;
if(t2.minutes > t1.minutes)
{
--t1.hours;
t1.minutes += 60;
}
difference->minutes = t1.minutes-t2.minutes;
difference->hours = t1.hours-t2.hours;
}
static size_t Wr... 阅读全帖
(共0页)