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