cout<<endl<<endl<<"Is your number here?";
cin>>card_choice;
if ((card_choice = 'y') && (oddcheck == true))
{
j = 0;
for(int i=1;i<64;i++)
{
j +=2;
if (i%2!=0)
main_array[i] = false;
main_array[j] = false;
j+=6;
main_array[j] = false;
}
}
if ((card_choice == 'y') && (oddcheck == false))
{
j=0;
for (int i =1;i<64;i++)
{
j +=2;
main_array[j] = false;
j+=6;
main_array[j] = false;
}
}
if ((card_choice =='n') && (oddcheck == false))
{
for (int i = 0;i<32;i++)
{
if ((i%2)!=0)
main_array[card3_array[i]] = false;
}
}
My third if statement is always ignored. When i delete the if statements above it works just fine. If anyone knows why please share. Thanx ! ;)