SAE S1.01
Fonctions.h
1 #include <stdio.h>
2 #include <stdlib.h>
3 
4 /* Fonctions d'ouverture des fichiers texte */
5 int Ouverture(int tNoCarte[], int tAge[], int tPointsCarte[], int tCarteActive[], int tNbActivitesJour[], int tDate[], int tMax, int *pasAct);
6 int OuvertureMembres(int tNoCarte[], int tAge[], int tPointsCarte[], int tCarteActive[], int tMax);
7 int OuvertureActivitesJour(int tNbActivitesJour[], int tDate[], int tMax);
8 
9 /* Fonctions des menus */
10 int ChoixMenu(void);
11 int ChoixMenuAffichage(void);
12 
13 /* Fonctions d'affichage */
14 void Affichage1Adherent(int tNoCarte[], int tAge[], int tPointsCarte[], int tCarteActive[], int nbElem);
15 void AffichageTousAdherents(int tNoCarte[], int tAge[], int tPointsCarte[], int tCarteActive[], int nbElem);
16 void AffichageNbEntreesTousJour(int tNbActivitesJour[], int tDate[], int nbElem);
17 void AffichageNbEntreesTotal(int tNbActivitesJour[], int nbElem);
18 void AffichageNbAdherents(int nbElem);
19 
20 /* Fonction globale */
21 void GestionMenus(void);
22 
23 /* Fonction de sauvegarde */
24 int Sauvegarde(int tNoCarte[], int tAge[], int tPointsCarte[], int tCarteActive[], int tNbActivitesJour[], int tDate[], int nbElem, int pasAct);
25 
26 /* Fonctions de gestion des adhĂ©rents */
27 int RechercheAdherent(int tNoCarte[], int nbElem, int NoCarte, int *trouve);
28 int RechercheAjoutAdherent(int tNoCarte[], int nbElem, int noCarte);
29 int AjoutAdherent(int tNoCarte[], int tAge[], int tPointsCarte[], int tCarteActive[], int tMax, int nbElem);
30 void ModificationAge(int tNoCarte[], int tAge[], int nbElem);
31 int SupprimerAdherent(int tNoCarte[], int tAge[], int tPointsCarte[], int tCarteActive[], int nbElem);
32 void ModificationActivationCarte(int tNoCarte[], int tCarteActive[], int nbElem);
33 
34 /* Fonctions de gestion des points */
35 void AjoutPoints(int tNoCarte[], int tPointsCarte[], int tCarteActive[], int nbElem, int noCarte);
36 void DebitActivitee(int tNoCarte[], int tCarteActive[], int tNbActivitesJour[], int nbElem);