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[1] == 2 & winningline[2] == 2 & winningline[3] == 2)
{
cout<<"Winning line - Cherry\n";
i want it so it looks to see if the value of winningline[1] is equal with the value in winning lines 2 and 3. what do i need to do to get this?



LinkBack URL
About LinkBacks



Unless, of course, I'm wrong, in which case ammar, feel free to fry me in a wok