|
|
@ -181,4 +181,32 @@ void Candidater(VilleIUT* tiut[],int *tlogi, candidat* tcandidat, int numcandid)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void CreateCandidat(candidat** tcandid,int* nbcandidat)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
candidat* Candidat_Ajout
|
|
|
|
|
|
|
|
printf("Merci de rentrez votre nom :");
|
|
|
|
|
|
|
|
fgets(Candidat_Ajout->name, 31, stdin);
|
|
|
|
|
|
|
|
printf("Merci de rentrez votre prénom :");
|
|
|
|
|
|
|
|
fgets(Candidat_Ajout->surname, 31, stdin);
|
|
|
|
|
|
|
|
printf("Merci de rentrez votre note en Mathématique :");
|
|
|
|
|
|
|
|
scanf("%d",Candidat_Ajout->note[0]);
|
|
|
|
|
|
|
|
printf("Merci de rentrez votre note en Français :");
|
|
|
|
|
|
|
|
scanf("%d",Candidat_Ajout->note[1]);
|
|
|
|
|
|
|
|
printf("Merci de rentrez votre note en Anglais :");
|
|
|
|
|
|
|
|
scanf("%d",Candidat_Ajout->note[2]);
|
|
|
|
|
|
|
|
printf("Merci de rentrez votre note en Spécialité :");
|
|
|
|
|
|
|
|
scanf("%d",Candidat_Ajout->note[3]);
|
|
|
|
|
|
|
|
(candidat**) realloc (tcandid,sizeof(candidat)*((*nbcandidat)++));
|
|
|
|
|
|
|
|
if (tcandid==NULL)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
fprintf(stderr,"Tableau candidat corrompue\n");
|
|
|
|
|
|
|
|
perror("Erreur :");
|
|
|
|
|
|
|
|
exit(errno);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
tcandid[nbcandidat-1]=Candidat_Ajout;
|
|
|
|
|
|
|
|
printf("Ajout fini\nVotre numéro de candidat est : %d",\
|
|
|
|
|
|
|
|
Candidat_Ajout->numcandid);
|
|
|
|
}
|
|
|
|
}
|