@ -131,6 +131,9 @@ void quizduell() {
Kategorie kategorien [ MAX_CATEGORIES ] ;
kategorien [ 0 ] . fragen = ( QuizFrage * ) malloc ( MAX_QUESTIONS_PER_CATEGORY * sizeof ( QuizFrage ) ) ;
if ( kategorien [ 0 ] . fragen = = NULL ) {
exit ( EXIT_FAILURE ) ;
}
kategorien [ 0 ] . fragen [ 0 ] = erstelleFrage ( " Whats the height of the Zugspitze? " , " 2482 Meter " , " 2867 Meter " , " 2962 Meter " , " 3173 Meter " , ' C ' ) ;
kategorien [ 0 ] . fragen [ 1 ] = erstelleFrage ( " In which Federal State is the Zugspitze? " , " Bayern " , " Baden-Wuerttemberg " , " Hessen " , " Thueringen " , ' A ' ) ;
kategorien [ 0 ] . fragen [ 2 ] = erstelleFrage ( " Which Mountain is the highest following after the Zugspitze? " , " Grossglockner " , " Watzmann " , " Feldberg " , " Meissner " , ' B ' ) ;
@ -138,6 +141,9 @@ void quizduell() {
kategorien [ 0 ] . joker = 1 ;
kategorien [ 1 ] . fragen = ( QuizFrage * ) malloc ( MAX_QUESTIONS_PER_CATEGORY * sizeof ( QuizFrage ) ) ;
if ( kategorien [ 1 ] . fragen = = NULL ) {
exit ( EXIT_FAILURE ) ;
}
kategorien [ 1 ] . fragen [ 0 ] = erstelleFrage ( " Which Ingredient is used traditionally for Pesto? " , " Tomatoes " , " Basil " , " Spinach " , " Oregano " , ' B ' ) ;
kategorien [ 1 ] . fragen [ 1 ] = erstelleFrage ( " Which meal is known for its usage of rice? " , " Lasagna " , " Sushi " , " Pizza " , " Hamburger " , ' B ' ) ;
kategorien [ 1 ] . fragen [ 2 ] = erstelleFrage ( " Which color has a ripe banana? " , " Red " , " Green " , " Yellow " , " Orange " , ' C ' ) ;
@ -145,6 +151,9 @@ void quizduell() {
kategorien [ 1 ] . joker = 1 ;
kategorien [ 2 ] . fragen = ( QuizFrage * ) malloc ( MAX_QUESTIONS_PER_CATEGORY * sizeof ( QuizFrage ) ) ;
if ( kategorien [ 2 ] . fragen = = NULL ) {
exit ( EXIT_FAILURE ) ;
}
kategorien [ 2 ] . fragen [ 0 ] = erstelleFrage ( " In which sport is the term 'home run' used? " , " Soccer/Football " , " Baseball " , " Tennis " , " Golf " , ' B ' ) ;
kategorien [ 2 ] . fragen [ 1 ] = erstelleFrage ( " How many players are there normally on the pitch in a soccer/football team? " , " 9 " , " 11 " , " 7 " , " 5 " , ' B ' ) ;
kategorien [ 2 ] . fragen [ 2 ] = erstelleFrage ( " What sport is played on a pitch and has a 'wicket'? " , " Rugby " , " Cricket " , " American Football " , " Hockey " , ' B ' ) ;