解题思路:
注意事项:
参考代码:
#include<stdio.h>
#define N 100
int main()
{
char str[N],*p;
int word=0;
gets(str);
for(p=str;*p!='\0';p++)
if('a'<=*p&&*p<='z'||'A'<=*p&&*p<='Z')
word++;
printf("%d\n",word);
return 0;
}
0.0分
0 人评分
C语言程序设计教程(第三版)课后习题8.6 (C++代码)浏览:738 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:565 |
C二级辅导-计负均正 (C语言代码)浏览:593 |
2004年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码)浏览:670 |
C语言程序设计教程(第三版)课后习题10.2 (C语言代码)浏览:1020 |
printf基础练习2 (C语言代码)浏览:594 |
C语言程序设计教程(第三版)课后习题8.1 (Java代码)浏览:781 |
蛇行矩阵 (C语言代码)浏览:753 |
WU-小九九 (C++代码)浏览:1684 |
C语言程序设计教程(第三版)课后习题3.7 (C语言代码)浏览:262 |