X-Git-Url: https://git.llucax.com/z.facultad/75.29/susanita.git/blobdiff_plain/a86e26ae42584c979262de7f6ddefa815ac7c625..3ca0929e3a23301865a192e7cd4e6104724dc4f9:/src/susanita.cpp?ds=sidebyside diff --git a/src/susanita.cpp b/src/susanita.cpp index 12cba02..a97a15e 100644 --- a/src/susanita.cpp +++ b/src/susanita.cpp @@ -1,5 +1,6 @@ #include "susanita.h" #include +#include Susanita::~Susanita() { @@ -37,3 +38,17 @@ get_persona(const std::string& nombre) const return ip->second; } +void +Susanita:: +mostrar_estado() const +{ + for (personas_type::const_iterator ih = hombres.begin(); + ih != hombres.end(); ++ih) + std::cout << **ih << "\n"; + std::cout << "\n"; + for (personas_type::const_iterator im = mujeres.begin(); + im != mujeres.end(); ++im) + std::cout << **im << "\n"; + std::cout << "\n" << std::endl; +} +