wouiouuuuuwoui

master
parent 39985421f0
commit 557e5883ec

BIN
SAE2

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -20,6 +20,10 @@ int main()
traiterTaches(tabTaches);
triFusion(tabTaches, TMAXTRAV);
afficherTachesTriees(tabTaches, TMAXTRAV);
return 0;
}

@ -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);
}
}

Loading…
Cancel
Save