Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Quitter un programme immédiatement


{filelink=13204}

 
/*
void exit ( int status  );
 
*/
 
  #include 
  #include 
 
  int main(void)
  {
    char choice;
 
    do {
      printf("Taper un caractère: ");
      choice = getchar();
	    printf("Le code ASCII %dn",choice);
	  if (choice=='q')
             exit(0);
    } while(true);
 
    return choice;
  }

No comments yet.

Leave a Comment