Liste des Groupes | Revenir à col misc |
[snip]
Here's one of my favourites:
>
if((month == 9) /* Thirty days hath September, */
|| (month == 4) /* April, */
|| (month == 6) /* June, */
|| (month == 11)) /* and November. */
modays = 30;
else if(month != 2)
modays = 31; /* All the rest have thirty-one, */
else if((year % 4) != 0) /* Except for February alone, */
modays = 28; /* Which has but 28 days clear, */
else
modays = 29; /* And 29 in each leap year. */
Oh, and anyone who modifies code without updating the
corresponding comments to reflect the change deserves
some sort of nasty punishment. Maybe we can make them
maintain any other programs whose comments have become
outdated and misleading.
Les messages affichés proviennent d'usenet.