#ifndef QUESTION_H
#define QUESTION_H

typedef struct question
{
  int number; // 問題番号
  char subject[10]; // 科目
  int level; // 難易度
  int get_credit; // 獲得できる単位数
  int time_limit; // 制限時間
  // 問題文
  char choices4[4][]; // 選択肢x4
  char choices2[2][]; // 選択肢x2
  int answer; //  正解答


}QUESTION;


// 問題を読み込む(返り値:問題)
int question_load(int position[][]);

// 問題の科目、難易度を表示 アイテムを使用するか否か
int question_display(int );

// アイテム使用(制限時間(time_limit)が増える,選択肢が減る)
int item_use(int item_type);

// タイマー(カウントが終わったら、採点へ)
int timer(int time_limit);

// 問題スタート(返り値:select_answer)
int question_start(int );

// 採点(0:不正解, 1:正解)
int saiten(int select_answer);

// 正解画面を表示 単位取得(引き数:問題番号)
int right_answer(int );

// 不正解画面を表示(引き数:問題番号)
int wrong_answer(int );

#endif