Well this program is suppose to not accept anything but s, S, r, R, p, P, or q, Q. When some one enters anything whether it be those or somethign different the while loop continues (it won't let me escape)
Well any ways here it is.
#include <iostream>
#include <string>
#include <istream>
using namespace std;
int main ()
{
char player1, player2;
cout << "Welcome to Rock Paper Sissors. Please select r for rock"
<< " p for paper, and s for sissors. If you would like to quit"
<< " please press q now.";
cin >> player1;
while ((player1!='r')||(player1!='R')
|| (player1!='p') || (player1!='P')
|| (player1!='s') || (player1!='S')
|| (player1!='q') || (player1!='Q'))
{
cout << "Wrong input ";
cin >> player1;
}
if ((player1=='q') || (player1=='Q'))
cout << "You selected quit, Good buy";
return 1;
cout << "Player two please select your type ";
cin >> player2;
if (player1=='r' && player2=='p')
{
cout << "Rock beats Paper";
}
return 0;
}