#include <cctype> int isalpha( int ch );
isalpha() 函数如果其参数是字母,则返回非零值。否则,返回零。
char c; scanf( "%c", &c ); if( isalpha(c) ) printf( "You entered a letter of the alphabet\n" );