1012题解解题思路:利用 if 句型,进行筛选。建一个变量做计算器,最后回车的时候做把统计的打出来(英文字母 数字 空格 其他符号) 注意事项:变量类型为 char !!! 在 for 循环进入 摘要: 参考代码: #include int main (void){ int a=0;//控制for循环的 int e=0;//英语字母 int n=0;//数字 …… 题解列表 2022年02月14日 0 点赞 0 评论 287 浏览 评分:0.0
[编程入门]字符串分类统计 摘要:##[编程入门]字符串分类统计 ```c #include #include int main() { char s[201]; int i,c1=0,c2=0,c3=0,c4=0;…… 题解列表 2022年03月17日 0 点赞 0 评论 219 浏览 评分:0.0
刷题记录(头秃第n天) 摘要:解题思路:gets puts函数的使用 解决scanf不能输入空格问题注意事项:参考代码:#include<string.h>#include<stdio.h>#include<stdlib.h>…… 题解列表 2022年03月21日 0 点赞 0 评论 189 浏览 评分:0.0
字符串分类统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){char a[200];int i,z=0,s=0,k=0,q=0;gets(…… 题解列表 2022年04月26日 0 点赞 0 评论 220 浏览 评分:0.0
编写题解 1012: [编程入门]字符串分类统计 摘要:解题思路:注意事项:参考代码:a=[] b=[] c=[] d=[] s=input('') for i in s: if (i >='a' and…… 题解列表 2022年05月05日 0 点赞 0 评论 228 浏览 评分:0.0
[编程入门]字符串分类统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){char c;int q=0,w=0,e=0,r=0;while((c=getchar())!='\n&#…… 题解列表 2022年05月06日 0 点赞 0 评论 180 浏览 评分:0.0
[编程入门]字符串分类统计 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;string s;long long yw,sz,kg,qt;int main(){…… 题解列表 2022年05月07日 0 点赞 0 评论 265 浏览 评分:0.0
编写题解 1012: [编程入门]字符串分类统计 摘要:#include <iostream>#include <cstdio>#include <cstring>using namespace std;int main (){ char str[1…… 题解列表 2022年05月08日 0 点赞 0 评论 170 浏览 评分:0.0
编写题解 1012: [编程入门]字符串分类统计 摘要:#include <iostream>#include <cstdio>#include <cstring>using namespace std;int main (){ char str[1…… 题解列表 2022年05月08日 0 点赞 0 评论 219 浏览 评分:0.0
字符串分类统计 题解(简单啦) 摘要:解题思路:输入字符串,判断,计数,输出,欧了。注意事项:要用getline输入!参考代码:#include<bits/stdc++.h>using namespace std;string s;int…… 题解列表 2022年05月08日 0 点赞 0 评论 150 浏览 评分:0.0