#include
#include
#define N 50
int main(int argc, char **argv)
{
int i, j, count, flag=0;
char s[N]={'\0'};
for(i=0;i {
scanf("%c", &s[i]);
if('\n'==s[i])
{
break;
}
}
printf("%s\n", s);
for(i=0,j=0;i {
if((s[i]>='A')&&(s[i]<='Z')||((s[i]>='a')&&(s[i]<='z'))||((s[i]>='0')&&(s[i]<='9')))
{
if(!flag)
{
count++;
flag=1;
}
}
else
{
flag=0;
}
}
printf("count = %d\n", count);
return 0;
}
阅读(1372) | 评论(0) | 转发(0) |