なんらかの理由で、この非常に単純な while ループが無限にループし続けます。おそらく、私はこれをあまりにも長い間見つめていたか、本当に明らかで愚かな間違いを犯したのでしょう. 誰かがコードを修正するのを手伝ってくれますか? 「ste」と入力しようとしましたが、無効な出力が引き続き表示されます。
while (type1 != "nor" || type1 != "fir" || type1 != "wat" || type1 != "ele" || type1 != "gra" || type1 != "ice" || type1 != "fig"|| type1 != "poi" || type1 != "gro" || type1 != "fly" || type1 != "psy" || type1 != "bug" || type1 != "roc" || type1 != "gho" || type1 != "dra" || type1 != "dar" || type1 != "ste" || type1 != "fai" || type1 != "n/a")
{
cout << "Invalid type. Re-enter type." << endl;
cin >> type1;
}