字符串分类统计 摘要:解题思路:数字字符在‘0’-‘9’之间,英文字符在‘a’-‘z’和‘A’-‘Z’之间,空格为‘ ’注意事项:在输入字符的时候用gets(),scanf会把空格当作是连个单词的分隔符参考代码:#incl…… 题解列表 2022年10月05日 0 点赞 0 评论 664 浏览 评分:9.9
1012: [编程入门]字符串分类统计 摘要:解题思路:注意事项:有个一样的题,要用函数参考代码:#include <iostream> #include <string> using namespace std; int main()…… 题解列表 2022年10月11日 1 点赞 0 评论 640 浏览 评分:9.9
字符串统计,转为数字比较 摘要:解题思路:注意事项:参考代码:#include<string.h>int main(){ int a = 0; int j = 0; int k = 0; int m = 0; int b = 0; …… 题解列表 2022年10月13日 0 点赞 0 评论 502 浏览 评分:9.9
编写题解 1012: [编程入门]字符串分类统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int letter=0,number=0,space=0,other=0;…… 题解列表 2022年10月28日 0 点赞 0 评论 539 浏览 评分:9.9
1012.字符串分类统计 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ char ch; int letter,number,blank,other; letter=number=b…… 题解列表 2022年10月29日 0 点赞 0 评论 497 浏览 评分:9.9
编写题解 1012: [编程入门]字符串分类统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int c,w=0,x=0,y=0,z=0; char a[200]; while((c=getchar())!…… 题解列表 2022年11月22日 0 点赞 0 评论 482 浏览 评分:9.9
字符串分类统计JAVA题解简单易懂 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args)…… 题解列表 2022年12月08日 0 点赞 0 评论 802 浏览 评分:9.9
字符串分类统计,用一下malloc吧 参考代码如下,解析写代码块里#include#include#includeintmain(void){char*p=NULL;//指向空p=(char*)malloc(sizeof(char)*200);//分配200个char类型的空间gets(p);//获取字符且舍去换行符intn, 题解列表 2022年12月27日 0 点赞 0 评论 821 浏览 评分:9.9
字符串分类统计 十分十分十分简单的方法(c语言) 摘要:解题思路:1.输出字母个数2.输出数字个数3.输出空格个数4.输出其他字符个数注意事项:参考代码:#include<stdio.h> #include<string.h> void fun(cha…… 题解列表 2023年01月01日 0 点赞 0 评论 615 浏览 评分:9.9
1012: [编程入门]字符串分类统计 ```cpp#include#include#includeusingnamespacestd;/*题目描述编写一函数,由实参传来一个字符串,统计此字符串中字母、数字、空格和其它字符的个数,在主函数中输入字符串以及输出上述结果只要结果,别输出什么提示信息。 题解列表 2023年02月23日 0 点赞 1 评论 898 浏览 评分:9.9