Ajout fonction traiterCandidatures

master
Alix JEUDI--LEMOINE 2 years ago
parent f4eaa440e8
commit f409de9866

@ -80,3 +80,22 @@ void afficherCandidaturesByDept(ListeCandidats liste, int nbCandidats, char* sea
free(liste2); 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
}
Loading…
Cancel
Save