ok i can't seem to figure out what is goin on here. i'm using or in my while statement and an if statement further down and no matter what i type in i can't get the while statement to leave. even if i type n or N. any help would be great
thanks, rubiks14
Code:char stayChoice = 'r'; while((stayChoice != 'n') || (stayChoice != 'N')) { cout << "Are you sure you want to stay at the Inn? (y/n)\n"; cout << endl; cout << ": "; cin >> stayChoice; cin.ignore(); cout << endl; if((stayChoice == 'y') || (stayChoice == 'Y')) { if(player.gold >= 50) { cout << "Your HP/MP have been restored\n"; SetHealth(player); SetMana(player); player.gold -= 50; cout << "Health: " << player.health << "/" << player.maxHealth << endl; cout << "Mana: " << player.mana << "/" << player.maxMana << endl; } else { cout << "Sorry you don't have enough gold.\n"; break; } }//if(stayChoice == 'y' || stayChoice == 'Y') }//while(stayChoice != 'n' || stayChoice != 'N')