From 50d564919f32ec84344c33a940686c3b0b87a89c Mon Sep 17 00:00:00 2001 From: fdlt3885 Date: Tue, 31 Jan 2023 21:37:29 +0000 Subject: [PATCH] Added user info function (epic game) --- src/main/quizproject.c | 8 ++++++++ src/main/quizproject.h | 1 + 2 files changed, 9 insertions(+) diff --git a/src/main/quizproject.c b/src/main/quizproject.c index c7c5720..a708e47 100644 --- a/src/main/quizproject.c +++ b/src/main/quizproject.c @@ -847,10 +847,18 @@ void b_entertostart() { 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() { B_displayWelcomeMessage(); b_entertostart(); B_username(); + B_userinfo(); } diff --git a/src/main/quizproject.h b/src/main/quizproject.h index 273391b..ca33971 100644 --- a/src/main/quizproject.h +++ b/src/main/quizproject.h @@ -50,6 +50,7 @@ void B_username(void); void b_entertostart(void); int toupper(int _c); void B_sayhello(char name[]); +void B_userinfo(void); #define NUM_QUESTIONS 5 #define round 3