#include<stdio.h> Void main(){ {char str[100]; i

#include<stdio.h> Void main(){ {char str[100]; int count[4]={0}; printf(“input a string :\n”); gets(s); fun( str, count); printf(“alphabet number blank space other \n”); printf(“%d%d%d%d\n”,count[0],count[1],count[2],count[3]); } void fun(char str[100],int count[4] ) {int k; for(k=0;s[i]<=\0;k++) while(s[k]!=|0) { { if('A'<=s[k]&&s[k]<='Z'||’a’<=s[k]&&’z’<=s[k]) c[0]++; else if ('0'<=s[k]&&s[k]<='9') c[1]++; else if (s[k]==32) c[2]++; else c[3]++; k++; } } 这个程序哪错了

这个好像是文件乱码了,下个360文件管理器,改一下码就行了,又能看了。
温馨提示:答案为网友推荐,仅供参考
相似回答