#include <stdio.h> #include <ctype.h> int main() { int n = 0, i = 0; char ch[256]; gets(ch); while (ch[i]) if (isalpha(ch[i++])) n++; printf("%d", n); return 0; }
[此贴子已经被作者于2022-4-1 08:23编辑过]