Amélioration de l'affichage

master
Kyllian CHABANON 2 years ago
parent 37f6546dbb
commit 4d2917f297

@ -8,12 +8,12 @@ void Affichage1Adherent(int tNoCarte[], int tage[], int tPointsCarte[], int tCar
pas = rechercheAdherent(tNoCarte, nbelem, NoCarte, &trouve); pas = rechercheAdherent(tNoCarte, nbelem, NoCarte, &trouve);
if(trouve == 1) if(trouve == 1)
{ {
printf(" N°_de_carte\tAge Points Carte_active\n"); printf("\nN° de carte\tAge\tPoints\tEtat\n");
printf("\t%d\t%d\t%d\t%d\n", tNoCarte[pas], tage[pas], tPointsCarte[pas], tCarteActive[pas]); printf("%d\t\t%d\t%d\t%d\n", tNoCarte[pas], tage[pas], tPointsCarte[pas], tCarteActive[pas]);
} }
else else
{ {
printf("Ce numéro d'adhérent n'existe pas, veuillez réessayer\n"); printf("Ce numéro d'adhérent n'existe pas. Veuillez réessayer\n");
return; return;
} }
} }
@ -21,20 +21,20 @@ void Affichage1Adherent(int tNoCarte[], int tage[], int tPointsCarte[], int tCar
void AffichageTousAdherents(int tNoCarte[], int tage[], int tPointsCarte[], int tCarteActive[], int nbelem) void AffichageTousAdherents(int tNoCarte[], int tage[], int tPointsCarte[], int tCarteActive[], int nbelem)
{ {
int i; int i;
printf(" N°_de_carte\tAge Points Carte_active\n"); printf("\nN° de carte\tAge\tPoints\tEtat\n");
for (i = 0; i < nbelem; i++) for (i = 0; i < nbelem; i++)
{ {
printf("\t%d\t%d\t%d\t%d\n", tNoCarte[i], tage[i], tPointsCarte[i], tCarteActive[i]); printf("%d\t\t%d\t%d\t%d\n", tNoCarte[i], tage[i], tPointsCarte[i], tCarteActive[i]);
} }
} }
void AffichageNbEntreesTousJour(int tNbActivitesJour[], int tDate[], int nbelem) void AffichageNbEntreesTousJour(int tNbActivitesJour[], int tDate[], int nbelem)
{ {
int i; int i;
printf(" Date\tNb_Activites\n"); printf("\nDate\tNb activités\n");
for (i = 0; i < nbelem; i++) for (i = 0; i < nbelem; i++)
{ {
printf("\t%d\t%d\n", tDate[i], tNbActivitesJour[i]); printf("%d\t%d\n", tDate[i], tNbActivitesJour[i]);
} }
} }

Loading…
Cancel
Save