自分なりに違うところを考えてみたのですが結局どこが間違っているのかわからなかったのでヒントを下さい><
答えを教えてもらうと成長しないのでヒントでお願いします。
たぶんアルゴリズムが違うと思うのですが・・・・
//日常英会話穴埋め問題//
#include <stdio.h>
int main(void)
{
int answer_no=0; //問題数//
char user_answer=0; //アプリ利用者の答えを代入する変数//
char apri_answer=0; //アプリ本体の答えを代入する変数//
int correct=0; //正解数を格納する変数//
printf("日常英会話問題\n");
while(answer_no != 10)
{
if(answer_no == 0)
{
printf("【問.1】日曜日どこで待ち合わせしますか?:");
printf("Where shall we ( ① ) on Sunday?\n");
scanf("%c",&user_answer);
apri_answer='meet';
if(user_answer == apri_answer)
{
correct=correct+1;
}
}
else if(answer_no == 1)
{
printf("\n【問.2】そこにはどうやって行けますか?:");
printf("How do I ( ② ) there?\n");
scanf("%c",&user_answer);
apri_answer='get';
if(user_answer == apri_answer)
{
correct=correct+1;
}
}
else if(answer_no == 2)
{
printf("\n【問.3】私の名前は覇王です。つづりはエイチ・エー・オーです。:");
printf("My ( ③ ) is Hao, it\'s spelled H-O-A.\n");
scanf("%c",&user_answer);
apri_answer='name';
if(user_answer == apri_answer)
{
correct=correct+1;
}
}
else if(answer_no == 3)
{
printf("\n【問.4】どちらへ行かれますか?:");
printf("Where would you ( ④ ) to go?\n");
scanf("%c",&user_answer);
apri_answer='like';
if(user_answer == apri_answer)
{
correct=correct+1;
}
}
else if(answer_no == 4)
{
printf("\n【問.5】道に迷ってしまいました。:");
printf("Excuse me. I have ( ⑤ ) my way.\n");
scanf("%c",&user_answer);
apri_answer='lost';
if(user_answer == apri_answer)
{
correct=correct+1;
}
}
else if(answer_no == 5)
{
printf("\n【問.6】ドライブへ行こうよ。:");
printf("Let\'s ( ⑥ ) for a drive.\n");
scanf("%c",&user_answer);
apri_answer='go';
if(user_answer == apri_answer)
{
correct=correct+1;
}
}
else if(answer_no == 6)
{
printf("\n【問.7】もっとゆっくり話してもらえますか?:");
printf("Could you speak ( ⑦ ) slowly?\n");
scanf("%c",&user_answer);
apri_answer='more';
if(user_answer == apri_answer)
{
correct=correct+1;
}
}
else if(answer_no == 7)
{
printf("\n【問.8】英語はあまり話せません。:");
printf("I don\'t speak English very ( ⑧ ).\n");
scanf("%c",&user_answer);
apri_answer='well';
if(user_answer == apri_answer)
{
correct=correct+1;
}
}
else if(answer_no == 8)
{
printf("\n【問.9】部屋を見せていただけますか?:");
printf("May I ( ⑨ ) the room,please?\n");
scanf("%c",&user_answer);
apri_answer='see';
if(user_answer == apri_answer)
{
correct=correct+1;
}
}
else
{
printf("\n【問.10】お疲れ様でした。また明日!:");
printf("OK, thanks. ( ⑩ ) you tomorrow!\n");
scanf("%c",&user_answer);
apri_answer='see';
if(user_answer == apri_answer)
{
correct=correct+1;
}
}
answer_no++;
}
printf("以上で日常英会話問題を終了します。\n");
printf("あなたの正解数は%dです。\n",&correct);
printf("お疲れ様でした!");
return 0;
}