|
|
@ -174,11 +174,12 @@ void Candidater(VilleIUT* tiut[],int tlogi, candidat* tcandidat[], int numcandid
|
|
|
|
char DepRech[31];
|
|
|
|
char DepRech[31];
|
|
|
|
printf("Veuillez entrez le département dans lequel vous souhaitez y postuler :");
|
|
|
|
printf("Veuillez entrez le département dans lequel vous souhaitez y postuler :");
|
|
|
|
scanf("%s",DepRech);
|
|
|
|
scanf("%s",DepRech);
|
|
|
|
|
|
|
|
printf("Check !\n");
|
|
|
|
if (existeDep(tiut[ind]->ldept, DepRech)==0) return;
|
|
|
|
if (existeDep(tiut[ind]->ldept, DepRech)==0) return;
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
int i;
|
|
|
|
for (i=0;tcandidat[i]->numcandid!=numcandid;++i);
|
|
|
|
for (i=0;tcandidat[i]->numcandid!=numcandid && i<tlogi;++i);
|
|
|
|
voeu* voeu_ajout = (voeu*) malloc (sizeof(voeu));
|
|
|
|
voeu* voeu_ajout = (voeu*) malloc (sizeof(voeu));
|
|
|
|
strcpy(voeu_ajout->ville,VilleRech);
|
|
|
|
strcpy(voeu_ajout->ville,VilleRech);
|
|
|
|
strcpy(voeu_ajout->dep,DepRech);
|
|
|
|
strcpy(voeu_ajout->dep,DepRech);
|
|
|
|