You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
599 B
31 lines
599 B
#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;
|
|
} |