//#include "stdafx.h"//vc++6.0加上这一行.
#include "stdio.h"
#include "ctype.h"
#include "stdlib.h"
void main(void){
char ch,f=0;
int sum=0,n=0;
printf("Enter a English sentence (less than 80 characters)...\n");
while(1){
if(isalpha(ch=getchar())) f=1;
else if(f){
f=0;
sum++;
}
if(ch=='.') break;
if(++n>=80){
printf("Error, is too long and input again...\n\n\n");
sum=n=f=0;
fflush(stdin);
}
}
printf("\nThere is(are) %d word(s).\n",sum);
}
#include
int main() {
char str[80] = {'\0'};
gets(str);
int i;
for (i = 0; i < 80; i++)
putchar(a[i]);
return 0;
}