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

Author:


Download


#include 
#include 

int main(void) {
  char ch;

  printf("Continuez l'opération? (Y/N : ");
  ch = getche();

  if(ch=='Y')
  {
   /* Effectuer l'opération ici */

  }

  return 0;
}

Leave a Reply

Your email address will not be published. Required fields are marked *