@ -61,14 +61,14 @@ void SupprimerAdherent(int *nbAdherents, int tabNoCarte[], int tabEtatCarte[], i
if(trouve==0)
{
printf("\nNumero de carte %d inexistant. Souhaitez vous un affichage detaille des adherents (O/N) : ",cible);
scanf("%*c%c",&rep);
scanf("%c",&rep);
// Verification de la validité de la réponse
while(rep!='N'&&rep!='O')
{
clean
printf("Reponse incorrecte. Souhaitez vous un affichage detaille des adherents (O/N) : ");
scanf("%*c%c",&rep);
scanf("%c",&rep);
}
if(rep=='O')
@ -83,14 +83,14 @@ void SupprimerAdherent(int *nbAdherents, int tabNoCarte[], int tabEtatCarte[], i
{
clean
printf("Adherent trouve. Voici ses informations :\nNumero de carte : %d\nEtat de la carte : %d\nPoint(s) sur la carte : %d\nConfirmez vous la suppression de l'adherent (O/N) : ",tabNoCarte[indice],tabEtatCarte[indice],tabPointCarte[indice]);
scanf("%*c%c",&rep);
scanf("%c",&rep);
// Verification de la validité de la réponse
while(rep!='N'&&rep!='O')
{
clean
printf("Reponse incorrecte. Confirmez vous la suppression de l'adherent %d (O/N) : ",tabNoCarte[indice]);
scanf("%*c%c",&rep);
scanf("%c",&rep);
}
// Suppression de l'adherent
if(rep=='O')
@ -118,14 +118,14 @@ void SupprimerAdherent(int *nbAdherents, int tabNoCarte[], int tabEtatCarte[], i
// Test pour savoir si on supprime encore un adhérent ou si on retourne au menu principal
printf("\nSouhaitez vous entrer un autre numero d'adherent (O/N) : ");
scanf("%*c%c",&rep);
scanf("%c",&rep);
clean
while(rep!='N'&&rep!='O')
{
clean
printf("Reponse incorrecte. Souhaitez vous entrer un autre numero d'adherent (O/N) : ");
scanf("%*c%c",&rep);
scanf("%c",&rep);
}
if(rep=='N')
@ -277,8 +277,9 @@ int TrouverAdherent(int tabNoCarte[], int nbAdherents, int noCarte, int *trouve)
{
if(tabNoCarte[i]==noCarte)
{
returni;
*trouve=1;
returni;
}
}
@ -287,6 +288,7 @@ int TrouverAdherent(int tabNoCarte[], int nbAdherents, int noCarte, int *trouve)