commit 7886a4ac79fed664437a60a7a9b3e088c091761c
parent 4adb08e6f7eda7233a4780c6a643cb23be998523
Author: Ignacio Cettour <129465157+IgnacioCettour@users.noreply.github.com>
Date: Mon, 17 Jun 2024 20:57:41 -0300
agrego consigna 1
Diffstat:
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/barrio.cpp b/barrio.cpp
@@ -26,6 +26,11 @@ void Barrio::addParada(std::string calle,
this->paradas->insert(new Parada(calle, alturaPlano, direccion, coord_x, coord_y));
}
+int Barrio::getSizeListaDeParadas(){ // CONSIGNA 1
+
+ return this->paradas->getSize();
+}
+
Barrio::~Barrio() {
delete paradas;
}
diff --git a/barrio.h b/barrio.h
@@ -41,6 +41,12 @@ public:
* pos: Agrega una para nueva
*/
void addParada(std::string calle, int alturaPlano, std::string direccion, double coord_x, double coord_y);
+
+ /*
+ * pos: Devuelve el numero total de paradas que hay en el barrio
+ */
+ int getSizeListaDeParadas(); //CONSIGNA 1
+
};
#endif /* BARRIO_H_ */