diff --git a/CPP/Source1.cpp b/CPP/Source1.cpp index dbad1a1..398093e 100644 --- a/CPP/Source1.cpp +++ b/CPP/Source1.cpp @@ -5,6 +5,7 @@ * Fait le 10/09/2024 ŕ Nancy */ #include +#include using namespace std; @@ -21,8 +22,8 @@ int main(void) { a = b; } printf("Le nombre le plus grand est %d", a); - printf("\n\nPour quitter, appuyez simultanément sur CTRL+ALT+SHIFT+ALTGR+... juste sur Echap en fait ;)\n\n"); - scanf_s("%c", &key); + printf("\n\nPour quitter, frappez la touche en haut ŕ gauche de votre clavier ;)\n\n"); + key = _getch(); if (key == 27) { return 0; }