when i put in
if((p2==1 && (card1='q'||card1='Q')) ||
(p2==2 && (card2='q'||card2='Q')) ||
(p2==3 && (card3='q'||card3='Q')) )
{cout<<"\n Urg, You Got It";}
else if((p2==1 && (card1='j'||card1='J')) ||
(p2==2 && (card2='j'||card2='J')) ||
(p2==3 && (card3='j'||card3='J')) )
{cout<<"\n Ha, You Got It Wrong!";}
else
{cout<<"\n What Are You Doing?";}
i get an error saying "non-lvalue in" on almost every line. all the variables are declared as integers or characters correctly. i just dont know what the "non-lvalue in" means
HELP!!!!!!!
|