Replace
if (input.find("end" || "End") != std::string::npos)
with:
if (input.find("end") != std::string::npos || input.find("End") != std::string::npos)
Similarly for your other if
.
It seems obvious what your expression means, but when you break it down it really doesn't make sense. find
expects a string, and "end" || "End"
is not a string.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…