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

Loading…
Cancel
Save