You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
707 B
31 lines
707 B
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include "commun.h"
|
|
|
|
|
|
Candidat lireCandidat(void)//fonction qui lit un candidat sur le clavier
|
|
{
|
|
Candidat c;
|
|
int nEtu,nbchx;
|
|
float moymat, moyfr, moyen, moyspe;
|
|
char nom[20], prenom[20];
|
|
printf("Numéro de candidat :\n");
|
|
scanf("%d", &c.nEtu);
|
|
printf("Nom du candidat :\n");
|
|
fgets();
|
|
printf("Prénom du candidat :\n");
|
|
fgets();
|
|
printf("Moyenne de maths :\n");
|
|
scanf("%f", &c.moymat);
|
|
printf("Moyenne de français :\n");
|
|
scanf("%f", &c.moyfr);
|
|
printf("Moyenne d'anglais :\n");
|
|
scanf("%f", &c.moyen);
|
|
printf("Moyenne de spécialité au choix :\n");
|
|
scanf("%f", &c.moyspe);
|
|
printf("Nombre de choix :\n");
|
|
scanf("%d", &c.nbchx);
|
|
}
|
|
|