优质题解 [编程入门]字符串分类统计2种方法(C语言) 摘要:解题思路: 此题可用两种方法来做方法一:1.了解ASCII表,那些字符在哪里,用那些字符对应的数字,也可不用了解,直接用字符就行2.要声明4个变量分别记录题目(字母、数字、空格、其他字符)要求的数量,…… 题解列表 2022年04月01日 6 点赞 49 评论 14453 浏览 评分:9.7
刷题记录(头秃第n天) 摘要:解题思路:gets puts函数的使用 解决scanf不能输入空格问题注意事项:参考代码:#include<string.h>#include<stdio.h>#include<stdlib.h>…… 题解列表 2022年03月21日 0 点赞 0 评论 291 浏览 评分: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 评论 375 浏览 评分:0.0
字符串分类统计 摘要:解题思路:这题还是比较简单的,用基础的C语言就可以了参考代码:include <stdio.h>#include <ctype.h>int main(){ int letter = 0,numb…… 题解列表 2022年03月15日 0 点赞 1 评论 236 浏览 评分:7.3
1012: [编程入门]字符串分类统计 摘要:解题思路:用英文、数字等对应的ASCii码来解决,不要string一个字符串,直接char一个字符型数组,然后输入字符串,后续针对每一个字符进行判断就很方便。注意事项:不#include<cstrin…… 题解列表 2022年02月20日 0 点赞 3 评论 660 浏览 评分:8.9
[编程入门]字符串分类统计c++ 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){ string x; getline(…… 题解列表 2022年02月17日 0 点赞 0 评论 668 浏览 评分:9.0
1012题解解题思路:利用 if 句型,进行筛选。建一个变量做计算器,最后回车的时候做把统计的打出来(英文字母 数字 空格 其他符号) 注意事项:变量类型为 char !!! 在 for 循环进入 摘要: 参考代码: #include int main (void){ int a=0;//控制for循环的 int e=0;//英语字母 int n=0;//数字 …… 题解列表 2022年02月14日 0 点赞 0 评论 417 浏览 评分:0.0
1012: [编程入门]字符串分类统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main(){ char str[200]; int i; …… 题解列表 2022年02月13日 0 点赞 0 评论 223 浏览 评分:0.0
gets函数,简单循环 摘要:解题思路:注意事项:参考代码: #include <stdio.h> #include <string.h> int main() { char a[205]; gets(a); int len…… 题解列表 2022年02月09日 0 点赞 0 评论 602 浏览 评分:9.9
if~else if处理和正则表达式处理 摘要:解题思路:首先可以想到将字符串转化为字符数组,再用if~else if判断统计。再次思考可以想到能用正则表达式来匹配字符串中的字符类型。注意事项:字符串类型输入需要使用nextLine(),因为输入字…… 题解列表 2022年01月22日 0 点赞 0 评论 910 浏览 评分:0.0