condition not working, can anyone explain why that is?

后端 未结 4 386
失恋的感觉
失恋的感觉 2021-01-16 00:23

I just started learning C++ so i’m sure there is something obvious about this that i’m missing. I would love it if somebody could enlighten me. thank you!

Im trying

4条回答
  •  别那么骄傲
    2021-01-16 00:58

    Change the || to &&. If the char is not 'n' AND the char is not 'N' AND the char is not 'Y' AND the char is not 'y' THEN display the error.

提交回复
热议问题