Browse Source

refactoring 4: Anpassungen in Header und Programm

remotes/origin/Christian
Christian Reum 11 months ago
parent
commit
490a341170
  1. 3
      src/wwm.c
  2. 5
      src/wwm.h

3
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); printf("You are at stage %d and have %d $\n", runde, geld);
srand(time(0)); srand(time(0));
int frage = rand() % 5; int frage = rand() % 5;
@ -66,4 +66,5 @@ void wwm(){
return; return;
}
} }

5
src/wwm.h

@ -1,6 +1,11 @@
#ifndef WWM_H #ifndef WWM_H
#define WWM_H #define WWM_H
extern int runde;
extern int geld;
extern int frage;
extern int useranswer;
extern int Geldstufen[]; extern int Geldstufen[];
int setGeld(int runde); int setGeld(int runde);

Loading…
Cancel
Save