From f409de986663a8a1a581d4374ee6cff449c5742e Mon Sep 17 00:00:00 2001 From: Alix JEUDI--LEMOINE Date: Thu, 12 Jan 2023 01:27:26 +0100 Subject: [PATCH] Ajout fonction traiterCandidatures --- src/III/trois.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/III/trois.c b/src/III/trois.c index 64b2419..f214020 100644 --- a/src/III/trois.c +++ b/src/III/trois.c @@ -79,4 +79,23 @@ void afficherCandidaturesByDept(ListeCandidats liste, int nbCandidats, char* sea } free(liste2); +} + +void traiterCandidatures(VilleIUT** tiut, int nbVilles, ListeCandidats liste, int nbCandidats, int nbCandidatsAccept, float noteMini) { + char dept[LEN_MAX], ville[LEN_MAX]; + + strcpy(dept, "Informatique"); + strcpy(ville, "Clermont-Ferrand"); + + int pos = rechercherVille(tiut, nbVilles, ville); + // tiut[pos] + + ListeDept ldept = tiut[pos]->ldept; + + while(ldept != NULL && strcmp(ldept->departement, dept) != 0) + ldept = ldept->suiv; + + ldept->noteMinimale = noteMini; + + //TODO } \ No newline at end of file