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

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

筛选

1035 字符类型统计

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

简单的令人发指

摘要:#include<stdio.h> #include<ctype.h> int main(void) {     char a[100];     gets(a);     int spa……

字符类型统计

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