From 9ea810ac6817e3f63ca258c4f9a6d2bd6e485907 Mon Sep 17 00:00:00 2001 From: fdlt3885 Date: Tue, 31 Jan 2023 21:15:46 +0000 Subject: [PATCH] added press any key to start (epic game) --- src/main/quizproject.c | 8 ++++++++ src/main/quizproject.h | 3 +++ 2 files changed, 11 insertions(+) diff --git a/src/main/quizproject.c b/src/main/quizproject.c index b98512a..614c164 100644 --- a/src/main/quizproject.c +++ b/src/main/quizproject.c @@ -835,8 +835,16 @@ void B_username(void) { scanf("%s", name); } +void b_entertostart() { + char enter; + printf("\t\t Press 'any key' to begin \n"); + scanf(" %c", &enter); + enter = toupper(enter); +} + void b_epic_game() { B_displayWelcomeMessage(); + b_entertostart(); B_username(); } diff --git a/src/main/quizproject.h b/src/main/quizproject.h index f94b56d..b8144a3 100644 --- a/src/main/quizproject.h +++ b/src/main/quizproject.h @@ -46,6 +46,9 @@ int track_r2_score = 0; //Epic Game Headers void B_displayWelcomeMessage(void); +void B_username(void); +void b_entertostart(void); +int toupper(int _c); #define NUM_QUESTIONS 5 #define round 3