From 532bafc0d9933d1e2ae24b09d15d6298ef672a87 Mon Sep 17 00:00:00 2001 From: fdlt3885 Date: Mon, 23 Jan 2023 10:44:01 +0000 Subject: [PATCH] Added Display Welcome message --- src/main/quizproject.c | 17 ++++++++++++----- src/main/quizproject.h | 2 +- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/main/quizproject.c b/src/main/quizproject.c index b2401d9..abb9b1a 100644 --- a/src/main/quizproject.c +++ b/src/main/quizproject.c @@ -5,11 +5,18 @@ #include #include "quizproject.h" -void startMessage(void){ - printf("Press Enter to Start the Game!\n"); -} - +void displayWelcomeMessage(void) { + printf("\t\t------------------------------------------\n\n"); + printf("\t\t------------------------------------------\n\n"); + printf("\t\t Welcome to The Quiz \n\n"); + printf("\t\t------------------------------------------\n"); + printf("\t\t------------------------------------------\n\n"); + } + + int main(){ - startMessage(); + displayWelcomeMessage(); return 0; } + + diff --git a/src/main/quizproject.h b/src/main/quizproject.h index f7a8df7..bc8964a 100644 --- a/src/main/quizproject.h +++ b/src/main/quizproject.h @@ -1,6 +1,6 @@ #ifndef QUIZPROJECT_H #define QUIZPROJECT_H -void startMessage(void); +void displayWelcomeMessage(void); #endif