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