I have a problem with the following code:
int main(){
string name;
cout<<"Enter: ";
cin>>name;
if(name == "AHAH"||"AHAH"||"ADAD"||"ACAC"||"ASAS"||"AHAD"||"AHAC"||"AHAS"||"ADAH"||"ADAC"\
||"ADAS"||"ACAH"||"ACAD"||"ACAS"||"ASAH"||"ASAD"||"ASAC"){
cout<<"Call! Good hand!";
}
else if(name == "2H2H")
cout<<"Rase";
system("pause");
};
No matter what I input the program outputs:
Call! Good hand!
What's the problem?
Aucun commentaire:
Enregistrer un commentaire