how do i insert a and statement into a checking procedure? i am trying to get my fruit machine to check to see if the numbers are the same, what do i need to do to ensure this?
e.g code -
else if (winningline == 2 & winningline == 2 & winningline == 2)
cout<<"Winning line - Cherry\n";
i want it so it looks to see if the value of winningline is equal with the value in winning lines 2 and 3. what do i need to do to get this?