Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void OuiNon(int *valide)
- {
- char reponse;
- do{
- reponse = getch();
- if(reponse != 'o' && reponse != 'n')
- printf("Veuillez repondre par 'o' ou 'n'.\n");
- else if(reponse == 'n')
- *valide = 0;
- else if(reponse == 'o')
- *valide = 1;
- }while(reponse != 'o' && reponse != 'n');
- printf("\n");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement