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

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

筛选

< ctype.h>

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<ctype.h>int main(){    char s[1000];    i……

指针遍历,分类记录

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){    string str;    g……

自定义字符类型统计

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>void tongji(char a[1000],  int *letter, int *num……

字符类型统计

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int *tongji(char *a){ int i; static int b[4]={0}; for(i=0;*(a+i)!=&#……

自定义函数之字符类型统计

摘要:解题思路:注意事项:参考代码:def function(x):     a, b, c, d = 0, 0, 0, 0     for i in x:         if i.isalpha(……

无聊的星期六

摘要:n=input() l1=l2=l3=l4=0 for i in range(len(n)):     if n[i].isspace():         l1+=1     elif n……

自定义函数之字符类型统计

摘要:解题思路:注意事项:参考代码:def tongji(m):    a,b,c,d = 0,0,0,0    for i in m:        if i.isalpha():            ……

字符统计两种方式(C语言)

摘要:方法区别:第一种:输出在自定义函数中第二种:输出在主函数中注意事项:使用scanf函数输入时,不能用 "%s" ,因为输入空格后输出只会显示空格之前的内容,所以要用 "%[^\n]" ,表示除了回车键……