Vous êtes sur la page 1sur 1

//void ajout( Ouvrage &o);

//void ajout( Livre &o);

void Bibliotheque::ajout( Ouvrage &o)


{

if(getOuvrage(o.gettitre())==tab.end())
{
Ouvrage *p=new ouvrage(o);
tab.push_back(p);
}
}

void Bibliotheque::ajout( Livre &o)


{

if(getOuvrage(o.gettitre())==tab.end())
{
Ouvrage *p=new livre(o);
tab.push_back(p);
}
}

///////////////////
bool Zoo::ajouter (const MedecinVeterinaire& vt)
{

if(chercherVeterinaire(vt.GetidVeterinaire())==lesVeterinaires.end())
{
lesVeterinaires.push_back(vt);
return true;
}
return false;
}

Vous aimerez peut-être aussi