diff --git a/SAE2 b/SAE2 index 8779e81..c31a8c8 100755 Binary files a/SAE2 and b/SAE2 differ diff --git a/includes/charge.h b/includes/charge.h index 4c8c7fd..19d38bb 100644 --- a/includes/charge.h +++ b/includes/charge.h @@ -40,6 +40,7 @@ void displayListeDevis(ListeDevis l); void afficherDevisEntreprise(Offre **tabTravaux); void displayPrecedences(Precedence *tabP, int tlog); void afficherTaches(Tache **tachesTriees, int p_tmax); +void afficherTachesTriees(Tache *tachesTriees[], int p_tmax); void enfiler(ListeAttente *file, Tache *tache); Offre *newOffre(char *travauxName); Booleen emptyListe(ListeDevis l); diff --git a/obj/structures.o b/obj/structures.o index aaf79bb..da3e5a8 100644 Binary files a/obj/structures.o and b/obj/structures.o differ diff --git a/srcs/structures.c b/srcs/structures.c index f9da3bb..f5a2dcd 100644 --- a/srcs/structures.c +++ b/srcs/structures.c @@ -346,6 +346,15 @@ void displayPrecedences(Precedence *tabP, int tlog) printf("\t%s\t\t : \t%s\n", tabP[i].travauxPrec, tabP[i].travauxSucc); } +void afficherTachesTriees(Tache *tachesTriees[], int p_tmax) +{ + int j; + + printf("Affichage par ordre d'exécution :\n"); + for (j = 0; j < p_tmax; j++) + printf("Tâche %s : Date de début au plus tôt = %d\n", tachesTriees[j]->tache, tachesTriees[j]->dateDebut); +} + // Partie 4 (à trier)