|
|
|
@ -162,7 +162,7 @@ void ListeCandidat(int nbcandidat,candidat *tcandidat[])
|
|
|
|
|
printf("Candidat non trouvé");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Candidater(VilleIUT* tiut[],int tlogi, candidat* tcandidat[], int numcandid)
|
|
|
|
|
void Candidater(VilleIUT* tiut[],int tlogi, candidat* tcandidat[], int nbcandidat)
|
|
|
|
|
{
|
|
|
|
|
char VilleRech[31];
|
|
|
|
|
printf("Veuillez entrez la ville de l'IUT au quel vous souhaitez candidatez : ");
|
|
|
|
@ -178,8 +178,10 @@ void Candidater(VilleIUT* tiut[],int tlogi, candidat* tcandidat[], int numcandid
|
|
|
|
|
if (existeDep(tiut[ind]->ldept, DepRech)==0) return;
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
int i;
|
|
|
|
|
for (i=0;tcandidat[i]->numcandid!=numcandid && i<tlogi;++i);
|
|
|
|
|
int i, numcandid;
|
|
|
|
|
printf("Veuillez entrez le numéro du candidat qui lui a été attribué : ");
|
|
|
|
|
scanf("%d",&numcandid);
|
|
|
|
|
for (i=0;tcandidat[i]->numcandid!=numcandid && i<nbcandidat;++i);
|
|
|
|
|
voeu* voeu_ajout = (voeu*) malloc (sizeof(voeu));
|
|
|
|
|
strcpy(voeu_ajout->ville,VilleRech);
|
|
|
|
|
strcpy(voeu_ajout->dep,DepRech);
|
|
|
|
|