parent
bcdd827481
commit
4928957e1e
@ -0,0 +1,19 @@
|
||||
#include "prototype.h"
|
||||
|
||||
Liste inscription(Liste lCand, int nbInsc)
|
||||
{
|
||||
Candidat c;
|
||||
printf("Veuillez rentrer votre nom et prénom : ");
|
||||
scanf("%s%*c%s", c.nom, c.prenom);
|
||||
printf("Entrez les notes : ");
|
||||
scanf("%f %f %f %f", c.lNote[0], c.lNote[1], c.lNote[2], c.lNote[3]);
|
||||
c.nbChoix=0;
|
||||
c.lChoix=NULL;
|
||||
c.numC=nbInsc + 1
|
||||
}
|
||||
|
||||
void affichage(Liste l)
|
||||
{
|
||||
printf("Numéro \t Prénom \t Nom \t Notes \t Nombre voeux \t Voeux\n");
|
||||
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
#include<stdio.h>
|
||||
#include<stdlib.h>
|
||||
#include<string.h>
|
||||
#include<stdbool.h>
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int numC;
|
||||
char prenom[20];
|
||||
char nom[20];
|
||||
float lNote[4];
|
||||
int nbChoix;
|
||||
struct Choix lChoix[nbChoix];
|
||||
} Candidat;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
char ville;
|
||||
char dpt;
|
||||
int chDpt;
|
||||
int chCand;
|
||||
} Choix;
|
||||
|
||||
typedef struct maillon
|
||||
{
|
||||
struct Candidat c;
|
||||
struct maillon *suiv;
|
||||
} Maillon, *Liste;
|
||||
|
||||
Liste inscription(Liste lCand, int nbInsc);
|
||||
Liste candidater(Liste lCand, Candidat c);
|
||||
Liste modifier(Liste lCand, Candidat c);
|
||||
Liste supprimer(Liste lCand, Candidat c);
|
||||
void sauvegarder(Liste l);
|
||||
void affichage(Liste l);
|
||||
void global(void);
|
@ -0,0 +1,13 @@
|
||||
#include "prototype.h"
|
||||
|
||||
void testInsc(void)
|
||||
{
|
||||
Liste l;
|
||||
int nb=0;
|
||||
l=inscription(l, nb);
|
||||
}
|
||||
|
||||
int main(void)
|
||||
{
|
||||
return 1;
|
||||
}
|
Loading…
Reference in new issue