为什么90?
查看原帖
为什么90?
417106
i7889楼主2020/11/4 14:56
#include <string.h>
#include <stdlib.h>
int main() {
int n;
	char s[1000];
	int m;
	gets(s);
	m=strlen(s);
n=0;
while(s[n]!=0){
n++;if(s[n]==' '||s[n]=='\n')m--;
}
	printf("%d",m);
	return 0;
}
2020/11/4 14:56
加载中...