Manifesto

In questa pagina potete aggiungere qualsiasi commento sui sorgenti che ho pubblicato, sulla vita, sui misteri dell'universo e su tutto quello che vi viene in mente! smile

-- TizianoMorgia - 07 Dec 2002


Homework 6 (note)

Anno bisestile

La gestione dell'anno bisestile (anche se remmata) e' sbagliata, infatti invece di:
if ( gg < 1 || gg > giorni_mese[ IsLeapYear( aa ) ][ mm ] )
deve essere
if ( gg < 1 || gg > giorni_mese[ IsLeapYear( aa ) ][ mm - 1 ] )
poiche' la matrice parte dall'elemento zero che corrisponde a gennaio. NB: non ho MAI testato questo controllo poiche' l'ho abbandonato, per via delle specifiche, subito dopo l'implementazione del codice.

-- TizianoMorgia - 09 Dec 2002


Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2002-12-09 - TizianoMorgia






 
Questo sito usa cookies, usandolo ne accettate la presenza. (CookiePolicy)
Torna al Dipartimento di Informatica
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback