ZZNUOJ_C语言1133:单词个数统计(附完整源码)

题目描述

从键盘输入一行字符,长度小于1000。统计其中单词的个数,各单词以空格分隔,且空格数可以是多个。

输入

输入只有一行句子。仅有空格和英文字母构成

输出

单词的个数

样例输入

problem Consists     of Matching

样例输出

4

完整源码:

#include <stdio.h>
#include <string.h>
int

猜你喜欢

转载自blog.csdn.net/qq_35091074/article/details/127270648