diff --git a/SAE2 b/SAE2 index 26dd657..dad0869 100755 Binary files a/SAE2 and b/SAE2 differ diff --git a/obj/main.o b/obj/main.o index e28bd2a..2e9fa3b 100644 Binary files a/obj/main.o and b/obj/main.o differ diff --git a/obj/part4.o b/obj/part4.o index 71617b3..7cfcfb0 100644 Binary files a/obj/part4.o and b/obj/part4.o differ diff --git a/srcs/main.c b/srcs/main.c index b1e80bd..b3b9c48 100644 --- a/srcs/main.c +++ b/srcs/main.c @@ -20,6 +20,10 @@ int main() traiterTaches(tabTaches); + triFusion(tabTaches, TMAXTRAV); + + afficherTachesTriees(tabTaches, TMAXTRAV); + return 0; } diff --git a/srcs/part4.c b/srcs/part4.c index 8c0ca9a..ab643ce 100644 --- a/srcs/part4.c +++ b/srcs/part4.c @@ -1,32 +1,5 @@ #include "../includes/main.h" -void afficherDetailsTache(Tache *tache) -{ - if (tache != NULL) - { - printf("Nom de la tâche: %s\n", tache->tache); - printf("Durée: %d\n", tache->duree); - printf("Nombre de prédécesseurs: %d\n", tache->nbPred); - printf("Date de début: %d\n", tache->dateDebut); - printf("Traité: %s\n", (tache->traite == true) ? "Oui" : "Non"); - - // Afficher les successeurs si nécessaire - MaillonSucc *succCourant = tache->succ; - printf("Successeurs: "); - while (succCourant != NULL) - { - printf("%s ", succCourant->tache); - succCourant = succCourant->nxt; - } - printf("\n\n"); - } - else - { - printf("La tâche est NULL.\n"); - } -} - - void traiterTaches(Tache *tabTache[]) { ListeAttente file; @@ -58,7 +31,6 @@ void traiterTaches(Tache *tabTache[]) succCourant = succCourant->nxt; } - afficherDetailsTache(tacheActuelle); } }