mrchaos
Sep 20th, 2002, 11:07 PM
cType = getche();
while (cType != 'C' || 'c' || 'I' || 'i' || 'A' || 'a')
{
printf ("Code not valid");
printf ("\nPlease re-enter a type (I, C, or A): ");
}
how can i put multiple conditions into a while loop? currently, the loop always comes back false.
while (cType != 'C' || 'c' || 'I' || 'i' || 'A' || 'a')
{
printf ("Code not valid");
printf ("\nPlease re-enter a type (I, C, or A): ");
}
how can i put multiple conditions into a while loop? currently, the loop always comes back false.