#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#define N 80
int fun(char* s)
{
int i, count = 0;
for (i
真题1:编写函数fun,统计一行字符串中单词的个数,作为函数返回值。字符串在主函数中输入,规定所有单词由小写字母组成,单词之间有若干空格隔开,一行的开始没有空格。
最新推荐文章于 2025-04-23 20:29:15 发布
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#define N 80
int fun(char* s)
{
int i, count = 0;
for (i