Last active
September 21, 2023 05:06
-
-
Save Kaminate/d116d1098eda5fadc293268e22f7f286 to your computer and use it in GitHub Desktop.
Press F to pay respects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef _WIN32 | |
#include <conio.h> // _getch | |
#include <ctype.h> // toupper | |
#include <stdio.h> // printf | |
int main(int argc, char** ) | |
{ | |
printf( "Press F to pay respects: " ); | |
for( ;; ) | |
{ | |
int c = _getch(); | |
if(toupper( c ) == 'F') | |
break; | |
printf( "%c\b", c ); | |
} | |
} | |
#endif | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment