Hi,
Sorry if this seems insignificant but I am not very good. I can't get this code to work:
I have got the program to print the values of the variables, and everything is as I would expect. The program runs through the loop and the if statement, but refuses to recognize when hand[i]==higher_card, even though it can print them out, and they are clearly the same. All of the variables are integers. Can anyone help?Code:for(i=0; i<=10; ++i){ if (hand[i]==card){ x=1; } else{ x=0; } }