Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

C/C++: Exemple d’utilisation de ‘getche()’


Download

 
#include <conio.h>
#include <stdio.h>
 
int main(void) {
  char ch;
 
  printf("Continuez l'opération? (Y/N : ");
  ch = getche();
 
  if(ch=='Y')
  {
   /* Effectuer l'opération ici */
 
  }
 
  return 0;
}
----------------------------------------------------------------------------

No comments yet.

Leave a Comment