别点最后一个链接
题目来源:
http://www.51cpc.com/problem/1061
题目描述
输入一段英文句子,请统计句子中的单词数目
输入格式
输入一段英文句子(长度小于1000)包含空格
输出格式
输出单词数目
样例
Sample Input:
It matters not what someone is born, but what they grow to be.
Sample Output:
13
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
#include<stdio.h> char str[1000]; int main() { char ch; int i,word=0,count=0; gets(str); for(i=0;(ch=str[i])!='