How to compare a input string with a pre-set string??

I am relearning C++ after 2 years off and I have been using Lua lately, so I don't see exactly why this doesn't work...? Help
void chooseTeam(void) {
string teamName;
cout << "Now, choose one of these teams -type it the way you see it-" << endl;
cout << "Pick one of the following, you cannot change it later!" << endl;
do {
cout << "ethos, pathos, athos: ";
cin >> (teamName);
}while (teamName != "ethos" || teamName != "pathos" || teamName != "athos");

}
Last edited on
Try changing || to &&
Last edited on
ty
Topic archived. No new replies allowed.