Prise en compte du système d'exploitation en cours

main
DahmaneYanis 3 years ago
parent 56de204fa2
commit 1322849aa3

@ -55,7 +55,14 @@ int SupprimerAdherent(int *nbAdherent, int tabNoCarte[], int tabEtatCarte[], int
else
{
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]);
// Verification de la validité de la réponse
while (rep != 'N' && rep != 'O')
{
printf("Reponse incorrecte. Confirmez vous la suppression de l'adherent %d (O/N) : ", tabNoCarte[indice]);
scanf("%*c%c", &rep);
}
// Suppression de l'adherent
for (int i = indice; i < *nbAdherent ; i++)

@ -0,0 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#ifdef __linux__
#define clean system("clear");
#endif
#ifdef _WIN32
#define clean system("cls");
#endif
Loading…
Cancel
Save