|
@ -103,7 +103,6 @@ void printOutOption(char qS[][100], char qC[][100],char aS[]){ |
|
|
if(response == aS[i]){ |
|
|
if(response == aS[i]){ |
|
|
score++; |
|
|
score++; |
|
|
correct(score); |
|
|
correct(score); |
|
|
fact(i); |
|
|
|
|
|
} else { |
|
|
} else { |
|
|
wrong(score); |
|
|
wrong(score); |
|
|
} |
|
|
} |
|
@ -145,6 +144,8 @@ int k = 0; |
|
|
|
|
|
|
|
|
k++; |
|
|
k++; |
|
|
} |
|
|
} |
|
|
|
|
|
printf("\nYour final score: %d\n", score); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void ask_questions(void) { |
|
|
void ask_questions(void) { |
|
@ -175,6 +176,12 @@ void hint(int question_num) { |
|
|
printf("%s\n",qC[question_num]); |
|
|
printf("%s\n",qC[question_num]); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void displayThankYouMessage(void) { // 4 & 5 |
|
|
|
|
|
printf("*******************************\n"); |
|
|
|
|
|
printf("Thank you for playing QuizGame!\n"); |
|
|
|
|
|
printf("*******************************\n\n"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
int main(){ |
|
|
int main(){ |
|
|
displayInstructions(); |
|
|
displayInstructions(); |
|
|
|
|
|
|
|
@ -186,6 +193,7 @@ int main(){ |
|
|
} |
|
|
} |
|
|
printf("\n"); |
|
|
printf("\n"); |
|
|
ask_questions(); |
|
|
ask_questions(); |
|
|
|
|
|
displayThankYouMessage(); |
|
|
return 0; |
|
|
return 0; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|