#include "SAE.h" int rechercheVille(VilleIUT *tiut[], int nb, char val[], bool *trouve) { int i; for (i = 0; i < nb; i++) { if (strcmp(tiut[i]->ville, val) == 0) { *trouve = true; return i; } } *trouve = false; return i; } int rechercheCandidat(Etudiant *tetud[], int nbCandidats, int numRecherche, bool *trouve) { int i; for (i = 0; i < nbCandidats; i++) { if (numRecherche == tetud[i]->num) { *trouve = true; return i; } } *trouve = false; return i; }