単一の文字を評価しようとしています:
bool repeat = true;
while (repeat)
//code
char x;
cout << "Would you like to tansfer another file? Y/N ";
cin >> x;
if (x == 'y' || x == 'Y')
repeat = true;
if (x == 'n' || x == 'N')
repeat = false;
else
throw "Input error";
コンソール出力として Input Error が表示され続けます。理由はありますか?while ループを繰り返すことができません。