[编程入门]字符串分类统计 摘要:解题思路:注意事项:参考代码:#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 评论 165 浏览 评分:0.0
[编程入门]字符串分类统计 摘要:注意事项:n=getchar()要用括号括起来参考代码:#include<stdio.h>int main(){ int a,b,c,d; char n; a=b=c=d=0;…… 题解列表 2022年05月05日 0 点赞 0 评论 318 浏览 评分:9.9
编写题解 1012: [编程入门]字符串分类统计 摘要:解题思路:注意事项:参考代码:a=[] b=[] c=[] d=[] s=input('') for i in s: if (i >='a' and…… 题解列表 2022年05月05日 0 点赞 0 评论 200 浏览 评分:0.0
字符串分类统计(C++简单题解) 摘要:解题思路:对字符串进行带空格输入,接着判断类型进行统计,最后输出;注意事项:需要使用getline进行输入参考代码:#include<iostream>#include<fstream>#includ…… 题解列表 2022年04月30日 0 点赞 0 评论 606 浏览 评分:7.3
字符串分类统计 摘要:解题思路:注意事项:参考代码:#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 评论 198 浏览 评分:0.0
利用while,不过搞不懂末尾应该以什么为结束符,有想法的进来讨论一下 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ char c; int a[4]={0}; whil…… 题解列表 2022年04月10日 0 点赞 1 评论 699 浏览 评分:8.0
使用2个数组+遍历 完成 字符串分类统计 摘要:解题思路:使用一个整型数组 记录每个类型的个数;使用一个字符数组 存储输入的字符串;遍历这个字符数组 并 逐一判断。注意事项:1.整型数组 作为全局变量时,初始化为0; 2.使用 gets() 可以…… 题解列表 2022年04月05日 0 点赞 0 评论 878 浏览 评分:9.9
优质题解 [编程入门]字符串分类统计2种方法(C语言) 摘要:解题思路: 此题可用两种方法来做方法一:1.了解ASCII表,那些字符在哪里,用那些字符对应的数字,也可不用了解,直接用字符就行2.要声明4个变量分别记录题目(字母、数字、空格、其他字符)要求的数量,…… 题解列表 2022年04月01日 4 点赞 47 评论 13426 浏览 评分:9.7
刷题记录(头秃第n天) 摘要:解题思路:gets puts函数的使用 解决scanf不能输入空格问题注意事项:参考代码:#include<string.h>#include<stdio.h>#include<stdlib.h>…… 题解列表 2022年03月21日 0 点赞 0 评论 167 浏览 评分: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 评论 195 浏览 评分:0.0