|
|
@ -315,7 +315,7 @@ void configurer_session_client(int numeros[], int suspendus[], int nombreClients
|
|
|
|
void menu_client(int *choix) {
|
|
|
|
void menu_client(int *choix) {
|
|
|
|
affiche_client();
|
|
|
|
affiche_client();
|
|
|
|
printf("Vous choisissez: ");
|
|
|
|
printf("Vous choisissez: ");
|
|
|
|
while (scanf("%d", choix) != 1 || *choix < 0 || *choix > 9) {
|
|
|
|
while (scanf("%d", choix) != 1 || *choix < 0 || *choix > 9 || (*choix > 5 && *choix < 9)) {
|
|
|
|
while (getchar() != '\n');
|
|
|
|
while (getchar() != '\n');
|
|
|
|
printf("ERREUR : Veuillez entrer un choix valide : ");
|
|
|
|
printf("ERREUR : Veuillez entrer un choix valide : ");
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -388,9 +388,6 @@ void global_client() {
|
|
|
|
sauvegarde_clients(numeros, cagnottes, suspendus, nombreClients);
|
|
|
|
sauvegarde_clients(numeros, cagnottes, suspendus, nombreClients);
|
|
|
|
printf("Au revoir !\n");
|
|
|
|
printf("Au revoir !\n");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
default:
|
|
|
|
|
|
|
|
printf("Veuillez entrer un choix valide !\n");
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} while (choix != 9);
|
|
|
|
} while (choix != 9);
|
|
|
|
}
|
|
|
|
}
|
|
|
|