Skip to content

Instantly share code, notes, and snippets.

@Kaminate
Last active September 21, 2023 05:06
Show Gist options
  • Save Kaminate/d116d1098eda5fadc293268e22f7f286 to your computer and use it in GitHub Desktop.
Save Kaminate/d116d1098eda5fadc293268e22f7f286 to your computer and use it in GitHub Desktop.
Press F to pay respects
#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