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
I would had parenthesis:
do { std::cin>>answer } while ((std::toupper(answer) != 'N') && (std::toupper(answer) != 'Y'));
Operators have precedence and it may introduce subtle errors not to mention when using beta compiler.