请问C语言第8题错在哪,怎么改?

如题所述

#include<stdio.h>

#include<ctype.h>

int main()

{ char s[]="How  are   you Fine thank you";

  int i,n=0;

  for(i=0;s[i];i++)

    if((!i||s[i-1]==' ')&&isalpha(s[i]))n++;

  printf("%d\n",n);  

  return 0;

}

温馨提示:答案为网友推荐,仅供参考
相似回答