C/C++: Arrêter une boucle infinie

Author:


Download

#include 
#include 

int main(void)
{
  for(;;)
    if(getchar()=='Q') abort();//Arrêt si l'utisateur appuie la touche Q

  return 0;
}

Leave a Reply

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