|
|
|
@ -6,7 +6,7 @@ int Ouverture(int tNoCarte[], int tage[], int tPointsCarte[], int tCarteActive[]
|
|
|
|
|
pasMembres = OuvertureMembres(tNoCarte, tage, tPointsCarte, tCarteActive, tmax);
|
|
|
|
|
pasAct = OuvertureActivitesJour(tNbActivitesJour, tDate, tmax);
|
|
|
|
|
*pasAct = pasAct;
|
|
|
|
|
return pasMembres
|
|
|
|
|
return pasMembres;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int OuvertureMembres(int tNoCarte[], int tage[], int tPointsCarte[], int tCarteActive[], int tmax)
|
|
|
|
@ -69,6 +69,23 @@ int OuvertureActivitesJour(int tNbActivitesJour[], int tDate[], int tmax)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int choixMenu(void)
|
|
|
|
|
{
|
|
|
|
|
int choix;
|
|
|
|
|
printf("\t Gestion des matières\n");
|
|
|
|
|
printf("1.\tAffichage\n");
|
|
|
|
|
printf("2.\tAjouter un client\n");
|
|
|
|
|
printf("3.\tModifier l'âge d'un client\n");
|
|
|
|
|
printf("4.\tSuppression d'un client\n");
|
|
|
|
|
printf("5.\tAjout de points sur une carte\n");
|
|
|
|
|
printf("6.\tModification de l'état de la carte\n");
|
|
|
|
|
printf("7.\tCréditer une activité à une carte\n");
|
|
|
|
|
printf("8.\tQuitter\n");
|
|
|
|
|
printf("\noption choisie :\n");
|
|
|
|
|
scanf("%d", &choix);
|
|
|
|
|
return choix;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int MenuAffichage(void)
|
|
|
|
|
{
|
|
|
|
|
int choix;
|
|
|
|
|
printf("\t Gestion des matières\n");
|
|
|
|
@ -101,7 +118,7 @@ void gestionMatieres(void)
|
|
|
|
|
{
|
|
|
|
|
if(choix == 1)
|
|
|
|
|
{
|
|
|
|
|
affichage(tMatieres, tCoeff, nbMatieres);
|
|
|
|
|
MenuAffichage(tMatieres, tCoeff, nbMatieres);
|
|
|
|
|
}
|
|
|
|
|
if(choix == 2)
|
|
|
|
|
{
|
|
|
|
|