Skip to content

Instantly share code, notes, and snippets.

@H4niz
Created January 30, 2018 16:40
Show Gist options
  • Save H4niz/7dddb32fbc956e6215d5d8d63c4061cd to your computer and use it in GitHub Desktop.
Save H4niz/7dddb32fbc956e6215d5d8d63c4061cd to your computer and use it in GitHub Desktop.
int __cdecl main()
{
int v1; // [esp+0h] [ebp-E8h]
char sName; // [esp+4h] [ebp-E4h]
char Round; // [esp+14h] [ebp-D4h]
[...]
puts("Enter your name: ");
cusRead(&sName);
[...]
puts("||=================||\n1.Play Game\n2.Show Scores\n3.Change Name\n4.Exit\n||=================||\nYour Choice:");
__isoc99_scanf("%d", &v1);
switch ( v1 )
{
case 2:
ShowScore((unsigned int *)&Round);
break;
case 3:
puts("Enter your name: ");
cusRead(&sName);
break;
case 1:
PlayGame((int)&Round);
break;
default:
v4 = 0;
break;
}
}
printf("Bye!");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment