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.
59 lines
1.6 KiB
59 lines
1.6 KiB
#include "Fonctions.h"
|
|
|
|
void Affichage1Adherent(int tNoCarte[], int tage[], int tPointsCarte[], int tCarteActive[], int nbelem)
|
|
{
|
|
int pas, NoCarte, CarteActive, trouve;
|
|
printf("Entrez le numéro de la carte de l'adhérent recherché : ");
|
|
scanf("%d",&NoCarte);
|
|
pas = rechercheAdherent(tNoCarte, nbelem, NoCarte, &trouve);
|
|
if(trouve == 1)
|
|
{
|
|
printf(" N°_de_carte\tAge Points Carte_active\n");
|
|
printf("\t%d\t%d\t%d\t%d\n", tNoCarte[pas], tage[pas], tPointsCarte[pas], tCarteActive[pas]);
|
|
}
|
|
else
|
|
{
|
|
printf("Ce numéro d'adhérent n'existe pas, veuillez réessayer\n");
|
|
return;
|
|
}
|
|
}
|
|
|
|
void AffichageTousAdherents(int tNoCarte[], int tage[], int tPointsCarte[], int tCarteActive[], int nbelem)
|
|
{
|
|
int i;
|
|
printf(" N°_de_carte\tAge Points Carte_active\n");
|
|
for (i = 0; i < nbelem; i++)
|
|
{
|
|
printf("\t%d\t%d\t%d\t%d\n", tNoCarte[i], tage[i], tPointsCarte[i], tCarteActive[i]);
|
|
}
|
|
}
|
|
|
|
void AffichageNbEntreesTousJour(int tNbActivitesJour[], int tDate[], int nbelem)
|
|
{
|
|
int i;
|
|
printf(" Date\tNb_Activites\n");
|
|
for (i = 0; i < nbelem; i++)
|
|
{
|
|
printf("\t%d\t%d\n", tDate[i], tNbActivitesJour[i]);
|
|
}
|
|
}
|
|
|
|
void AffichageNbEntreesTotal(int tNbActivitesJour[], int nbelem)
|
|
{
|
|
int i, somme = 0;
|
|
for (i = 0; i < nbelem; i++)
|
|
{
|
|
somme = somme + tNbActivitesJour[i];
|
|
}
|
|
printf("Le nombre total d'entrées est de %d depuis le début.\n", somme);
|
|
}
|
|
|
|
void AffichageNbAdherents(int nbelem)
|
|
{
|
|
int i, somme = 0;
|
|
for (i = 0; i < nbelem; i++)
|
|
{
|
|
somme = somme + 1;
|
|
}
|
|
printf("Le nombre total d'adhérents est de %d.\n", somme);
|
|
} |