|
|
@ -63,6 +63,12 @@ void displayInstructions(void) { |
|
|
|
displayGoodLuckMessage(); |
|
|
|
} |
|
|
|
|
|
|
|
void correct(int score2){ |
|
|
|
printf("\nCorrect!\n"); |
|
|
|
printf("You have %d points now\n\n", score); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void looping(char qS[][100], char qC[][100], char aS[]){// 5 |
|
|
|
|
|
|
|
printf("\t\t--------------------Round 1-------------------\n\n"); |
|
|
@ -76,8 +82,7 @@ void looping(char qS[][100], char qC[][100], char aS[]){// 5 |
|
|
|
response = toupper(response); |
|
|
|
if(response == aS[i]){ |
|
|
|
score++; |
|
|
|
printf("\nCorrect!\n"); |
|
|
|
printf("You have %d points now\n\n", score); |
|
|
|
correct(score); |
|
|
|
|
|
|
|
} else { |
|
|
|
printf("\nwrong!\n"); |
|
|
|