Browse Source

plain commit

remotes/origin/Christian
Christian Reum 11 months ago
parent
commit
4aa4308366
  1. 4
      src/wwm.c

4
src/wwm.c

@ -39,15 +39,15 @@ void ccheckAnswer(int useranswer) {
int ceingabe() {
printf("Your answer (1-4):");
int result = scanf_s("%d", &useranswer);
int result = scanf("%d", &useranswer);
if (result == 0) {
printf("Please enter a number beetween 1 and 4 to answer or 5 to end the game!\n");
while (getchar() != '\n')
return ceingabe();
}
ccheckAnswer(useranswer);
return useranswer;
}
};
void wwm(){

Loading…
Cancel
Save