#include <ctype.h> #include <stdio.h> int main(void) { char ch; printf("tapez 'q' pour quittern"); for(;;) { ch = getchar(); if(ch == 'q') { break; } if(isspace(ch)){ printf("%c Vous avez tapé la touche espace", ch); } } return 0; } |
----------------------------------------------------------------------------