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