From 754582a906744b3bf2c8738d134d1cccc6463373 Mon Sep 17 00:00:00 2001 From: IA Date: Wed, 9 Nov 2022 21:41:43 +0100 Subject: [PATCH] nn --- SAE.c | 55 ++++++++++++++++++++++++++++++++----------------------- 1 file changed, 32 insertions(+), 23 deletions(-) diff --git a/SAE.c b/SAE.c index 3f9a180..10004ba 100644 --- a/SAE.c +++ b/SAE.c @@ -99,7 +99,22 @@ int choixMenuAffichage(void) scanf("%d", &choix); return choix; } +void Affichage1Adherent() +{ + +} +void AffichageTousAdherents() +{ + +} +void AffichageNbEntreesJour() +{ +} +void AffichageNbEntreesTousJours() +{ + +} void gestionMatieres(void) { int tNoCarte[20] = {0}, tage[20] = {0}, tPointsCarte[20] = {0}, tCarteActive[20] = {0}; @@ -112,12 +127,12 @@ void gestionMatieres(void) return ; } choix = choixMenu(); - while(choix != 9) + while(choix != 8) { if(choix == 1) { choix = choixMenuAffichage(); - while(choix != 9) + while(choix != 6) { if(choix == 1) { @@ -125,53 +140,49 @@ void gestionMatieres(void) } if(choix == 2) { - modificationCoefficient(tMatieres, tCoeff, nbMatieres); + } if(choix == 3) { - nbMatieres = insertionNewMatiere(tMatieres, tCoeff, nbMatieres, max); + } if(choix == 4) { - nbMatieres = suppressionMatiere(tMatieres, tCoeff, nbMatieres); + } if(choix == 5) { - MoyenneNotesMatiere(tMatieres, tNotes, tNbNotes, nbMatieres); - } - if(choix == 6) - { - MoyenneEtudiant(tCoeff, tMatieres, tNotes, tNbNotes, nbMatieres); + } - choix = choixMenu(); + choix = choixMenuAffichage(); } } if(choix == 2) { - modificationCoefficient(tMatieres, tCoeff, nbMatieres); + } if(choix == 3) { - nbMatieres = insertionNewMatiere(tMatieres, tCoeff, nbMatieres, max); + } if(choix == 4) { - nbMatieres = suppressionMatiere(tMatieres, tCoeff, nbMatieres); + } if(choix == 5) { - MoyenneNotesMatiere(tMatieres, tNotes, tNbNotes, nbMatieres); + } if(choix == 6) { - MoyenneEtudiant(tCoeff, tMatieres, tNotes, tNbNotes, nbMatieres); + } choix = choixMenu(); } - sauvegarde(tMatieres, tCoeff, nbMatieres); + sauvegarde(tNoCarte, tage, tPointsCarte, tCarteActive, tNbActivitesJour, tDate, nbelem); exit(1); } -/* + int Sauvegarde(int tNoCarte[], int tage[], int tPointsCarte[], int tCarteActive[], int tNbActivitesJour[], int tDate[], int nbelem) { int i, j; @@ -200,6 +211,9 @@ int Sauvegarde(int tNoCarte[], int tage[], int tPointsCarte[], int tCarteActive[ fclose(flot); } +/* + + void ajouterPoints(int tNumCarte[], int tPoints[], int tailleLog) { @@ -344,16 +358,11 @@ int CreationAdherents(int tNoCarte[], int tage[], int tPointsCarte[], int tCarte nbelem = nbelem + 1; } -/* void pointsBonus() { } - - - - int CreationAdherents(int tAdherents[], nbClients) { int NoCarte, nom, prenom, age, pointsCarte, CarteActive, nbActivitéesJour;