diff --git a/src/wwm.c b/src/wwm.c index 611946c..1d7c0d8 100644 --- a/src/wwm.c +++ b/src/wwm.c @@ -40,7 +40,7 @@ void wwm(){ }; - for (r = 1; r <= 15; r++){ + for (int r = 1; r <= 15; r++){ printf("You are at stage %d and have %d $\n", runde, geld); srand(time(0)); int frage = rand() % 5; @@ -66,4 +66,5 @@ void wwm(){ return; + } } diff --git a/src/wwm.h b/src/wwm.h index b38a849..edddd39 100644 --- a/src/wwm.h +++ b/src/wwm.h @@ -1,6 +1,11 @@ #ifndef WWM_H #define WWM_H +extern int runde; +extern int geld; +extern int frage; +extern int useranswer; + extern int Geldstufen[]; int setGeld(int runde);