diff --git a/CPP/Source1.cpp b/CPP/Source1.cpp index dbad1a1..296f37b 100644 --- a/CPP/Source1.cpp +++ b/CPP/Source1.cpp @@ -5,6 +5,7 @@ * Fait le 10/09/2024 ŕ Nancy */ #include +#include using namespace std; @@ -22,7 +23,7 @@ int main(void) { } 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); + key = _getch(); if (key == 27) { return 0; }