文章
33
粉丝
78
获赞
36
访问
24.9k
#include <stdio.h>
#include <string.h>
int main() {
char c[100];
gets(c);
int count = 0, word[100] = { 0 };
for (int i = 0;c[i] != '.';i++) {
if (c[i] = ' ' && ((c[i + 1] >= 'a' && c[i + 1] <= 'z') || (c[i + 1] >= 'A' && c[i + 1] <= 'Z'))) {
{
count++;
while ((c[i + 1] >= 'a' && c[i + 1] <= 'z') || (c[i + 1] >= 'A' && c[i + 1] <= 'Z')) {
word[count]++;
 ...
登录后发布评论
暂无评论,来抢沙发