Browse Source

Added user info function (epic game)

main
fdlt3885 2 years ago
parent
commit
50d564919f
  1. 8
      src/main/quizproject.c
  2. 1
      src/main/quizproject.h

8
src/main/quizproject.c

@ -847,10 +847,18 @@ void b_entertostart() {
enter = toupper(enter); enter = toupper(enter);
} }
void B_userinfo(void){
char info[100] = {0};
printf("\t\t How old are you?\n");
scanf("%d", &info);
printf("\t\t Nice!!!\n");
}
void b_epic_game() { void b_epic_game() {
B_displayWelcomeMessage(); B_displayWelcomeMessage();
b_entertostart(); b_entertostart();
B_username(); B_username();
B_userinfo();
} }

1
src/main/quizproject.h

@ -50,6 +50,7 @@ void B_username(void);
void b_entertostart(void); void b_entertostart(void);
int toupper(int _c); int toupper(int _c);
void B_sayhello(char name[]); void B_sayhello(char name[]);
void B_userinfo(void);
#define NUM_QUESTIONS 5 #define NUM_QUESTIONS 5
#define round 3 #define round 3

Loading…
Cancel
Save