I'm trying to play a game, for this I have displayed a menu and then I used the command switch
to access the options, if the user wants to play it select 1 and will be asked the name of the players 1 and 2, for this I used get
but at the time I run the code it skips player 1 and goes directly to player 2, how do I solve it? I'm using it like this:
printf("Nome do Player1: ");
gets(player);
printf("\n");
printf("Nome do Player2: ");
gets(pl2);
NOTE: I will correctly declare the vectors, and these codes are within case 1
of switch