Changement menu utilisateur

master
Jade VAN BRABANDT 3 years ago
parent bb9c8871ab
commit 9fa2473914

BIN
SAE

Binary file not shown.

@ -2,7 +2,7 @@
#include <stdlib.h>
#include <errno.h>
#include "saeP2.h"
/*
candidat* LoadCandid(void)
{
//J'ouvre le fichier
@ -15,11 +15,12 @@ candidat* LoadCandid(void)
//Lire la première ligne pr savoir combien d'étudiant je vais lire
int nbcandid;
fread(&nbcandid,sizeof(int),1,file);
candidat Listecandidat[nbcandid];
candidat* Listecandidat=(candidat*) malloc (sizeof(candidat)*nbcandid);
//Tant que j'ai des étudiants à lire :
for(int i=0;nbcandid>i;++i)
{
//Son numéro, Son nom, Son prenom, liste de note
//Son numéro, Son nom, Son prenom, liste de note`
candidat Candidat_ajout;
int numcandid;
char surname[31];
char name[31];
@ -32,6 +33,7 @@ candidat* LoadCandid(void)
int nbchoix;
fread(&nbchoix,sizeof(int),1,file);
//Tant que j'ai pas fait tout ces choix :
voeu* ListeVoeu_ajout=NULL;
for(int y=0;y<nbchoix;++y)
{
//Je lis La ville, le département, la décision du dep, la validation du candidat
@ -59,9 +61,10 @@ candidat* LoadCandid(void)
Listecandidat[i]=Candidat_ajout;
}
//Je sors en disant que le load est sucessful
printf("Chargement réussie.")
printf("Chargement réussie.");
return Listecandidat;
}
/*
void RechercheCandidat(int ID, int nbcandidat, int tmax,candidat *tcand)
{
for(int i=0;i<nbcandidat;++i)

@ -1,4 +1,4 @@
/*
typedef struct
{
char ville[31];
@ -18,4 +18,4 @@ typedef struct
candidat* LoadCandid(void);
//void gestionPhaseCandidatures(); A FAIRE.*/
//void gestionPhaseCandidatures(); A FAIRE.

Loading…
Cancel
Save