From 7cd59ee456ee6cbc216c02b8e0c22b7ea63b7cc5 Mon Sep 17 00:00:00 2001 From: Pablo Date: Sat, 8 Nov 2025 19:18:23 +0100 Subject: [PATCH] implementacion de bisiesto --- src/Fecha.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;