diff --git a/src/Fecha.cpp b/src/Fecha.cpp index eb8ae63..90571ce 100644 --- a/src/Fecha.cpp +++ b/src/Fecha.cpp @@ -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;