implementacion de bisiesto
This commit is contained in:
@@ -54,7 +54,7 @@ void Fecha::setFecha(const int &dia, const int &mes, const int &a) {
|
||||
}
|
||||
|
||||
bool Fecha::bisiesto() const {
|
||||
if (this->anio%4==0) //esto no es exacto... corregidlo ustedes
|
||||
if (this->anio%4==0 && (this->anio%100!=0 || this->anio%400==0 )) //esto no es exacto... corregidlo ustedes
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user