complete 26083.c
This commit is contained in:
@@ -56,7 +56,7 @@ int valid(Date *x, Date now) {
|
|||||||
}
|
}
|
||||||
if (x->year < now.year) {
|
if (x->year < now.year) {
|
||||||
return 0;
|
return 0;
|
||||||
} else if(x->year > now.year) {
|
} else if (x->year > now.year) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -66,9 +66,9 @@ int valid(Date *x, Date now) {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(x->day < now.day) {
|
if (x->day < now.day) {
|
||||||
return 0;
|
return 0;
|
||||||
} else if(x->day >= now.day) {
|
} else if (x->day >= now.day) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user