Q
for instance, I read a char from the input
and I need to decide whether it is a letter or a number
What I am doing is
char a;
...... // read a
int true = false;
if( (a >='0') && (a <='z')
true = 1;
Is there any easy way for it?
Thanks a lot!
and I need to decide whether it is a letter or a number
What I am doing is
char a;
...... // read a
int true = false;
if( (a >='0') && (a <='z')
true = 1;
Is there any easy way for it?
Thanks a lot!