quelques fonctions supplementaires

master
Roxane ROSSETTO 2 years ago
parent a2159e817b
commit 1c9e3366e7

@ -4,7 +4,7 @@
#include "commun.h" #include "commun.h"
##########################TABLEAU POINTEUR#####################################################
Choix lirechx (void){ Choix lirechx (void){
Choix chx; Choix chx;
@ -23,21 +23,6 @@ Choix lirechx (void){
Candidat lireCandidat(void)//fonction qui lit un candidat sur le clavier Candidat lireCandidat(void)//fonction qui lit un candidat sur le clavier
{ {
Candidat c; Candidat c;
@ -60,25 +45,45 @@ Candidat lireCandidat(void)//fonction qui lit un candidat sur le clavier
return c; return c;
} }
<<<<<<< HEAD
=======
/*
Choix * chargeChoix(Choix *tchoix, TAILLE, nbchx){
}
*/
void AffC(Candidat c)
{
printf("%d\n", c.nEtu);
printf("%s \n %s\n", c.nom, c.prenom);
printf("%.2f\t%.2f\t%.2f\t%.2f\n", c.moymat,c.moyfr, c.moyen, c.moyspe);
printf("%d\n", c.nbchx);
}
######################################### LISTES ##########################################
void AffListeCandidat (Liste l){
if ( l == NULL) return;
AffC(l->ON A PAS ENCORE STRUCT)
AffListeCandidat(l->suivant);
}
Liste recherche (Liste l, char *nom ){
if ( l == NULL ){ return l;}
if ( strcmp ( l->Candidat.nom, nom ) == 0) return l;
return recherche (l->suivant, nom );
}
@ -86,22 +91,48 @@ Candidat lireCandidat(void)//fonction qui lit un candidat sur le clavier
>>>>>>> refs/remotes/origin/master
/*
Choix * chargeChoix(Choix *tchoix, TAILLE, nbchx){
}
*/
void AffC(Candidat c)
{
printf("%d\n", c.nEtu);
printf("%s \n %s\n", c.nom, c.prenom);
printf("%.2f\t%.2f\t%.2f\t%.2f\n", c.moymat,c.moyfr, c.moyen, c.moyspe);
printf("%d\n", c.nbchx);
}
####################################### FILES #################################################
Loading…
Cancel
Save