![](https://lstatic.shangxueba.com/jiandati/pc/images/pc_jdt_tittleico.png)
提问人:网友idler_cat
发布时间:2022-01-07
![](https://lstatic.shangxueba.com/jiandati/pc/images/logo2.png)
![下面程序的功能是从键盘输入一行字符,统计有多少个单词,单词间用空格分隔。补充所缺语句。 inc](https://img2.soutiyun.com/shangxueba/askcard/2023-10/3/656/20231003194730255.jpg)
[主观题]
下面程序的功能是从键盘输入一行字符,统计有多少个单词,单词间用空格分隔。补充所缺语句。 inc
lude<stdio.h> main() { chars s[80],c1,c2= ; int i=0,num=0; gets(s); while(s[i]!=\0) { c1=s[i]; if(i==0)c2= ; else c2=s[i-1]; if(【 】)num++; i++; } printf("There are%d words,\n",num); }
![](https://lstatic.shangxueba.com/jiandati/pc/images/jdt_panel_vip.png)
查看官方参考答案