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.
41 lines
942 B
41 lines
942 B
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include "commun.h"
|
|
|
|
|
|
<<<<<<< HEAD
|
|
Choix lirechx (void){
|
|
Choix chx;
|
|
printf("Saisir le choix de la ville\n");
|
|
fgets(chx.ville, 20, stdin);
|
|
chx.ville[strlen(chx.ville)-1]= '\0';
|
|
|
|
printf("Saisir le choix du departement d'étude\n");
|
|
fgets(chx.dptmt, 20, stdin);
|
|
chx.dptmt[strlen(chx.dptmt)-1]= '\0';
|
|
|
|
|
|
=======
|
|
Candidat lireCandidat(void)//fonction qui lit un candidat sur le clavier
|
|
{
|
|
printf("Numéro de candidat :\n");
|
|
scanf("%d", &nEtu);
|
|
printf("Nom du candidat :\n");
|
|
fgets();
|
|
printf("Prénom du candidat :\n");
|
|
fgets();
|
|
printf("Moyenne de maths :\n");
|
|
scanf("%f", &moymat);
|
|
printf("Moyenne de français :\n");
|
|
scanf("%f", &moyfr);
|
|
printf("Moyenne d'anglais :\n");
|
|
scanf("%f", &moyen);
|
|
printf("Moyenne de spécialité au choix :\n");
|
|
scanf("%f", &moyspe);
|
|
printf("Nombre de choix :\n");
|
|
scanf("%d", nbchx);
|
|
>>>>>>> a5955171bf9c365f184ce801438713c97d7e073b
|
|
}
|
|
|