#include "zoo.h" /*void ZOO::SuppAnimal (int n) { list::iterator iT; bool trouve=false; while(!trouve && iT!=lani.end()){ if((*iT)->getnum() == n){ trouve=true; lani.erase(iT); } iT++; } if (!trouve) cout << "Cet animal n'appartient pas au zoo!" << endl; } void ZOO::SuppEnclos (int n) { list::iterator iT; bool trouve=false; while(!trouve && iT!=lenc.end()){ if((*iT)->getnum() == n){ trouve=true; lenc.erase(iT); } iT++; } if (!trouve) cout << "Cet enclos n'existe pas!" << endl; } void ZOO::SuppPersonnel (string n, string p) { list::iterator iT; bool trouve=false; while(!trouve && iT!=lper.end()){ if(((*iT)->getnom() == n)&&((*iT)->getprenom() == p)){ trouve=true; lper.erase(iT); } iT++; } if (!trouve) cout << "Ce personnel n'existe pas!" << endl; } */ void ZOO::AfficheAnimal(){ list ::iterator iT; for(iT=lani.begin(); iT!=lani.end(); iT++) {(*iT)->Afficheani();} } void ZOO::AffichePers(){ list ::iterator iT; for(iT=lper.begin(); iT!=lper.end(); iT++) {(*iT)->Affichepers();} }