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

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

筛选

容易理解的C语言代码

摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> void fun(char* a, int* num1, int* num2, int*……

函数传参字符类型统计

摘要:原题链接:[自定义函数之字符类型统计](https://www.dotcpp.com/oj/problem1035.html "自定义函数之字符类型统计") ####解题思路: 1.定义函数,再编……

使用ASCII码,求解,有可能超时

```c#includeintfilter();intmain(void){filter();return0;}intfilter(){intnumber=0,string=0,space=0,others=0,e;while((e=getchar())!=10){//getchar()一个个读取输入

简单的字符串操作

解题思路:无。注意事项:1.注意\n的引入与否,这里将\n也作为输入终止2.因为考虑到串长是一个容易获得且应该具备的属性,故添加了串长。参考代码:int*data(char*,int);intmain(void){char*given=(char*)malloc(sizeof(char)*1000);