题解 1035: [编程入门]自定义函数之字符类型统计

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

字符类型统计

摘要:解题思路:数组,便于想到注意事项:参考代码:#include<string.h>void fun(char a[]){ int p=0,b=0,c=0,d=0,i; int len=strlen(a)……

1035 字符类型统计

解题思路:#include#includeintletters=0,digits=0,spaces=0,others=0;voidcountchars(constchar*str){for(inti=0;str[i]!='\0';i++){if(is