|
|
@ -17,6 +17,7 @@ typedef struct {
|
|
|
|
typedef Candidature** ListeCandidatures;
|
|
|
|
typedef Candidature** ListeCandidatures;
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
typedef struct {
|
|
|
|
|
|
|
|
int id;
|
|
|
|
char nom[LEN_MAX], prenom[LEN_MAX];
|
|
|
|
char nom[LEN_MAX], prenom[LEN_MAX];
|
|
|
|
float moyenneMath, moyenneFrancais, moyenneAnglais, moyenneSpecialite;
|
|
|
|
float moyenneMath, moyenneFrancais, moyenneAnglais, moyenneSpecialite;
|
|
|
|
int nbCandidatures;
|
|
|
|
int nbCandidatures;
|
|
|
@ -26,8 +27,18 @@ typedef struct {
|
|
|
|
typedef Candidat** ListeCandidats;
|
|
|
|
typedef Candidat** ListeCandidats;
|
|
|
|
|
|
|
|
|
|
|
|
Candidat* creerCandidat(void);
|
|
|
|
Candidat* creerCandidat(void);
|
|
|
|
|
|
|
|
Candidature* creerCandidature(void);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ListeCandidats ajouterCandidat(ListeCandidats liste, int* nbCandidats, Candidat* candidat);
|
|
|
|
|
|
|
|
void ajouterCandidature(Candidat* candidat, Candidature* candidature);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void afficherListeCandidats(ListeCandidats liste, int nbCandidats);
|
|
|
|
void afficherCandidat(Candidat* candidat);
|
|
|
|
void afficherCandidat(Candidat* candidat);
|
|
|
|
|
|
|
|
void afficherCandidatures(Candidat* candidat);
|
|
|
|
ListeCandidats lireCandidats(int* nbCandidats);
|
|
|
|
ListeCandidats lireCandidats(int* nbCandidats);
|
|
|
|
int sauvegarderCandidatures(ListeCandidats liste);
|
|
|
|
int sauvegarderCandidats(ListeCandidats liste, int nbCandidats);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int compareCandidats(const void* c1, const void* c2);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void test2(void);
|
|
|
|
void test2(void);
|