if ( (p!='t') || (p!='T') || (p!='f') || (p!='F') ){
cout << "Error: Must be 1 or 2";
}
As it acts right now, no matter what I input for 'p' it always displays the 'Error' message.




Posted 05 March 2010 - 08:38 PM
if ( (p!='t') || (p!='T') || (p!='f') || (p!='F') ){
cout << "Error: Must be 1 or 2";
}
Posted 05 March 2010 - 08:39 PM
This post has been edited by PlasticineGuy: 05 March 2010 - 08:47 PM
Posted 05 March 2010 - 08:44 PM
if( (p=='f') || (p=='F') && (q=='t') || (q=='T') ){
cout << "This is consistent.";
}
else{
cout << "This is inconsistent.";
}
Posted 05 March 2010 - 08:44 PM
Posted 05 March 2010 - 08:47 PM
Posted 05 March 2010 - 08:49 PM
Posted 05 March 2010 - 08:55 PM
if( (p=='f') || (p=='F') && (q=='t') || (q=='T') ){
cout << "This is consistent.";
}
else{
cout << "This is inconsistent.";
}
Posted 05 March 2010 - 08:57 PM
Posted 05 March 2010 - 09:13 PM
if((x == 5 || x == 9) && (y == 1 || y == 19)) {
//...
}
This post has been edited by PlasticineGuy: 05 March 2010 - 09:14 PM
Posted 05 March 2010 - 09:21 PM
