// // Entreprise.cpp // Entreprise // // Created by vlaurain on 08/03/2019. // Copyright © 2019 vlaurain. All rights reserved. // #include "Entreprise.hpp" //chaque ajout d'employe necessite de réallouer un tableau et de copier case par case void Entreprise::Add_Vendeur(string n, string p, int a,int nb) { Employe ** Dummy; Dummy=new Employe*[taille+1]; for(int i=0;iaffiche(); } } //ATTENTION CETTE FONCTION NE DESALLOUE QUE LE TABLEAU, (PAS LES EMPLOYES STOCKES) void Entreprise::Delete_pointeur() { if(Tous_les_employes!=NULL) { delete [] Tous_les_employes; } } //ATTENTION LE DESTRUCTEUR DOIT TOUT DESALLOUER (LES EMPLOYES ET LE TABLEAUX D4EMPLOYES) Entreprise::~Entreprise() { if(Tous_les_employes!=NULL) { for(int i=0;i