From 651b6e0a1f951a7eafd81c91b1a9da77168e7333 Mon Sep 17 00:00:00 2001 From: fdlt3914 Date: Mon, 23 Jan 2023 11:09:20 +0000 Subject: [PATCH] display instruction functions --- src/main/quizproject.c | 9 +++++++-- src/main/quizproject.h | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/quizproject.c b/src/main/quizproject.c index 8d4e1d0..04fdef4 100644 --- a/src/main/quizproject.c +++ b/src/main/quizproject.c @@ -49,12 +49,17 @@ void displayLifelineInstructions(void) { printf("\t\t>>'H' Hint: Reveals a hint for the answer.<<\n"); } +void displayInstructions(void) { + displayWelcomeMessage(); + displayLifelineInstructions(); +} + + int main(){ - displayWelcomeMessage(); - displayLifelineInstructions(); + displayInstructions(); return 0; } diff --git a/src/main/quizproject.h b/src/main/quizproject.h index 484583d..3180e8b 100644 --- a/src/main/quizproject.h +++ b/src/main/quizproject.h @@ -4,5 +4,6 @@ void displayWelcomeMessage(void); void displayGameInstructions(char name[]); void displayLifelineInstructions(void); +void displayInstructions(void); #endif