Browse Source

refactoring - rearranged declarations

main
fdlt3917 2 years ago
parent
commit
fd3d7b6305
  1. 8
      src/main/quizproject.c

8
src/main/quizproject.c

@ -1235,11 +1235,9 @@ void play_factorlie() {
void play_milliongame() { void play_milliongame() {
printf("\nPlaying who wants to be a millionaire...\n\n"); printf("\nPlaying who wants to be a millionaire...\n\n");
int million_i = 0, million_k = 0;;
char million_user_answers[NUM_ROUNDS];
char million_std_answers[NUM_ROUNDS] = {'A', 'C', 'D', 'C', 'B', 'D', 'B', 'A', 'B', 'B', 'A', 'D', 'C', 'C', 'B'};
int million_stay_in_game = 0, million_reward = 0, million_checkpoint = 0, million_count_replace = 0;
int million_lifeline_hint = 1, million_lifeline_delete = 1, million_lifeline_friend = 1;
int million_i = 0, million_k = 0, million_checkpoint = 0, million_reward = 0, million_count_replace = 0;
int million_stay_in_game = 0, million_lifeline_friend = 1, million_lifeline_delete = 1, million_lifeline_host = 1;
char million_std_answers[round] = {'A', 'C', 'D', 'C', 'B', 'D', 'B', 'A', 'B', 'B', 'A', 'D', 'C', 'C', 'B'} , million_user_answers[round];
char questions[NUM_ROUNDS][256] = { char questions[NUM_ROUNDS][256] = {
"What is the capital of Germany?", "What is the capital of Germany?",

Loading…
Cancel
Save