[编程入门]字符串分类统计 摘要:参考代码:#include<stdio.h>#include<string.h>#include<ctype.h>int main(){ char str[200]; int len,le…… 题解列表 2023年07月15日 0 点赞 0 评论 233 浏览 评分:9.9
字符串分类统计 摘要:解题思路:注意事项:这段代码没有考虑输入字符串中的特殊字符、标点符号等情况。它只会统计字母、数字、空格和其他字符的个数。参考代码:#include <stdio.h> #include <strin…… 题解列表 2023年11月04日 0 点赞 0 评论 180 浏览 评分:9.9
java--study||O.o 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) …… 题解列表 2024年01月21日 0 点赞 0 评论 313 浏览 评分:9.9
【编程入门】字符串分类统计 摘要:参考代码:#include <stdio.h>intmain(void){ int letter = 0, number = 0, space = 0, other = 0; char c…… 题解列表 2024年06月21日 0 点赞 0 评论 364 浏览 评分:9.9
优质题解 [编程入门]字符串分类统计2种方法(C语言) 摘要:解题思路: 此题可用两种方法来做方法一:1.了解ASCII表,那些字符在哪里,用那些字符对应的数字,也可不用了解,直接用字符就行2.要声明4个变量分别记录题目(字母、数字、空格、其他字符)要求的数量,…… 题解列表 2022年04月01日 4 点赞 47 评论 13619 浏览 评分:9.7
优质题解 [编程入门]字符串分类统计-题解(C语言代码) 摘要:**题目描述:输入一行字符,分别统计其中英文字符,数字,空格和其他字符的个数。** **输入** 一行字符 **输出** 统计值 本题牵扯到的知识点有 1如何访问一维字符型…… 题解列表 2020年02月28日 0 点赞 30 评论 12191 浏览 评分:9.6
1012: [编程入门]字符串分类统计 摘要:解题思路:全部for一遍,并判断。注意事项:1·要用gets,不要用cin,否则读不进空格。 2·判断数字时,要从0开始。参考代码:#include<bits/stdc++.h> using na…… 题解列表 2022年07月11日 0 点赞 2 评论 1078 浏览 评分:9.5
优质题解 C语言程序设计教程(第三版)课后习题6.2 (C语言代码) 摘要:解题思路和注意事项:在这里我们会用到getchar()函数,简单来说,getchar()就是从键盘获取字符,直到回车为止;代码中while里的表达式(c = getchar()) != '\n…… 题解列表 2018年04月26日 96 点赞 138 评论 21737 浏览 评分:9.3
C语言程序设计教程(第三版)课后习题6.2 (C++代码) 摘要:解题思路: 注释注意事项:参考代码:#include<iostream> #include<string> //使用string类 using namespace std; int ma…… 题解列表 2019年04月05日 1 点赞 2 评论 2290 浏览 评分:9.3
[编程入门]字符串分类统计-题解(C++代码) 摘要:解题思路:要是想要写这个代码需要知道的几点:1、gets()可以输入字符串,其头文件为#include <cstring>2、isdigit(str(i))和isalpha(str(i))分别可以判断…… 题解列表 2020年11月09日 0 点赞 2 评论 1691 浏览 评分:9.2