#include <stdio.h> #include<ctype.h> int main() { char ch = 0; while ((ch = getchar()) != EOF) { getchar(); if (isalpha(ch))//用字符函数isalpha来判断是否是字母 printf("%c is an alphabet.\n", ch); else printf("%c is not an alphabet.\n", ch); } return 0; }