#include <cctype> int isalnum( int ch );
isalnum() 函数如果它的参数是数字或字母,则返回非零值。否则,返回零。
char c; scanf( "%c", &c ); if( isalnum(c) ) printf( "You entered the alphanumeric character %c\n", c );