|
|
@ -9,9 +9,9 @@ char answers[NUM_QUESTIONS] = {'B', 'A', 'A','B','A'}; |
|
|
|
int* randomNumber() { |
|
|
|
srand(time(NULL)); |
|
|
|
int k = 0, p; |
|
|
|
static int arr[11]; |
|
|
|
while(k<11){ |
|
|
|
int num =rand()%11; |
|
|
|
static int arr[13]; |
|
|
|
while(k<13){ |
|
|
|
int num =rand()%13; |
|
|
|
for (p = 0; p < k; p++){ |
|
|
|
if(arr[p]==num){ |
|
|
|
break; |
|
|
@ -110,6 +110,8 @@ void fifty_fifty(int question_num) { |
|
|
|
"A.Egypt\nB.Mexico", |
|
|
|
"A.Surat Thani\nB.Bangkok", |
|
|
|
"B.Mexico\nC.USA", |
|
|
|
"C.Venice\nD.Naples", |
|
|
|
"B.Cluny\nC.The Louvre" |
|
|
|
}; |
|
|
|
printf("%s\n",qC[question_num]); |
|
|
|
} |
|
|
@ -245,6 +247,10 @@ void ask_questions(void) { |
|
|
|
"What country are the Great Pyramids of Giza located in?\n", |
|
|
|
"What is the capital of Thailand?\n", |
|
|
|
"In which country was Frida Kahlo born?\n", |
|
|
|
"What present-day Italian city does Mt. Vesuvius overlook?\n", |
|
|
|
"The Mona Lisa by Leonardo da Vinci is on display in which Paris museum?\n" |
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
|
char possible_options[][100] = { |
|
|
|
"A.Mount Everest\nB.Uludag\nC.K2\nD.Makalu", |
|
|
@ -258,6 +264,9 @@ void ask_questions(void) { |
|
|
|
"A.Egypt\nB.Mexico\nC.Iceland\nD.Greenland", |
|
|
|
"A.Surat Thani\nB.Bangkok\nC.Phuket\nD.Pattaya City", |
|
|
|
"A.Austria\nB.Mexico\nC.USA\nD.India", |
|
|
|
"A.Milan\nB.Rome\nC.Venice\nD.Naples", |
|
|
|
"A.Carnavalet\nB.Cluny\nC.The Louvre\nD.Musee d'Orsay" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
@ -274,6 +283,9 @@ void ask_questions(void) { |
|
|
|
'A', |
|
|
|
'B', |
|
|
|
'B', |
|
|
|
'D', |
|
|
|
'C' |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
int* randArr = randomNumber(); |
|
|
@ -412,6 +424,9 @@ void hint(int question_num) { |
|
|
|
"Hint:It is a dry Country.", |
|
|
|
"Hint:The capital has the longest city name in the world.", |
|
|
|
"Hint:The Native language is Spanish.", |
|
|
|
"Hint:The city that invented Swamp Buggy Racing.", |
|
|
|
"Hint:It is the most visited art museum in the world." |
|
|
|
|
|
|
|
}; |
|
|
|
printf("%s\n",qC[question_num]); |
|
|
|
} |
|
|
|