Character class. Shorten code for checking upper and lower case.
Posted on 2004-08-15
Can anyone help advice on the following?
Is there any way to shorten the condtion for checking upper and lower case?
Given that the loop accept only 'Y', 'y', 'N' and 'n' for yes and no?
} while ((toCon!='Y') && (toCon! ='y') && (toCon!='N') && (toCon!= 'n'));
Do any of the these methods come into use for solving the above-mentioned qn?
Thanks in advance.