From 8f33ed93fcb33e59fd84250915b2a438b907910e Mon Sep 17 00:00:00 2001 From: fdlt3885 Date: Mon, 23 Jan 2023 11:23:29 +0000 Subject: [PATCH] Added ask question function --- src/main/quizproject.c | 21 ++++++++++++++++++++- src/main/quizproject.h | 2 +- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/src/main/quizproject.c b/src/main/quizproject.c index b582f6c..f913985 100644 --- a/src/main/quizproject.c +++ b/src/main/quizproject.c @@ -63,6 +63,25 @@ void displayInstructions(void) { displayWelcomeMessage(); } +void ask_questions(void) { + char qS[][100] = { //5 + "What is the name of the tallest mountain in the world?\n" + + + }; + char qC[][100] = {//6 + "A.Mount Everest\nB.Uludag\nC.K2\nD.Makalu" + + + }; + + char aS[100] = { + 'A' + + }; + +} + @@ -77,7 +96,7 @@ int main(){ var = getchar(); } printf("\n"); - +ask_questions(); return 0; } diff --git a/src/main/quizproject.h b/src/main/quizproject.h index 71536f3..f4a337c 100644 --- a/src/main/quizproject.h +++ b/src/main/quizproject.h @@ -6,5 +6,5 @@ void displayGameInstructions(char name[]); void displayLifelineInstructions(void); void displayInstructions(void); void displayGoodLuckMessage(void); - +void ask_questions(void); #endif