#include<stdio.h>
#include <string.h>
#define N 200 //字符串最大个数
int fun( char *s)
{
int n=1;
while(
请编写函数int fun( char *s),统计一行字符串中单词的个数作为函数值返回。规定所有单词由小写字母组成,单词之间由若干个空格隔开,一行的开始没有空格。
最新推荐文章于 2023-08-18 18:03:45 发布
#include<stdio.h>
#include <string.h>
#define N 200 //字符串最大个数
int fun( char *s)
{
int n=1;
while(