Ajout de la fonction modificationEtat

master
Kyllian CHABANON 2 years ago
parent 19f407c1b2
commit f963f5540f

12
SAE.c

@ -494,12 +494,12 @@ void modificationEtat(int tNumCarte[], int tEtat[], int tailleLog)
{
if (tEtat[index] == 1)
{
printf("La carte n°%d est déjà active");
printf("La carte n°%d est déjà active", numCarte);
return;
}
else
{
printf("La carte n°%d a été activée");
printf("La carte n°%d a été activée", numCarte);
return;
}
}
@ -507,12 +507,12 @@ void modificationEtat(int tNumCarte[], int tEtat[], int tailleLog)
{
if (tEtat[index] == 0)
{
printf("La carte n°%d est déjà désactivée");
printf("La carte n°%d est déjà désactivée", numCarte);
return;
}
else
{
printf("La carte n°%d a été désactivée.")
printf("La carte n°%d a été désactivée.", numCarte)
return;
}
}
@ -546,7 +546,7 @@ int Sauvegarde(int tNoCarte[], int tage[], int tPointsCarte[], int tCarteActive[
fclose(flot);
}
void ModificationActivationCarte(int tNoCarte[], int tage[], int tPointsCarte[], int tCarteActive[], int nbelem)
/*void ModificationActivationCarte(int tNoCarte[], int tage[], int tPointsCarte[], int tCarteActive[], int nbelem)
{
int NoCarte, trouve, pas;
printf("Entrez le numéro de la carte de l'adhérent recherché : ");
@ -570,7 +570,7 @@ void ModificationActivationCarte(int tNoCarte[], int tage[], int tPointsCarte[],
printf("Ce numéro d'adhérant n'existe pas, veuillez réessayer\n");
return -1;
}
}
}*/
void DebitActivitee(int tNoCarte[], int tage[], int tPointsCarte[], int tCarteActive[], int tNbActivitesJour[], int tDate[], int nbelem)
{

@ -29,6 +29,7 @@ void testSauvegarde(void);
int rechercheAdherant (int tNoCarte[], int nbelem);
int AjoutAdherent(int tNoCarte[], int tage[], int tPointsCarte[], int tCarteActive[], int tmax, int nbelem);
void ModificationAge(int tNoCarte[], int tage[], int nbelem);
void modificationEtat(int tNumCarte[], int tEtat[], int tailleLog);
/* Fonstions de gestion des points */
void ajouterPoints(int tNumCarte[], int tPoints[], int tailleLog);

Loading…
Cancel
Save