1035: [编程入门]自定义函数之字符类型统计 摘要:参考代码:publicstaticvoidmain(String[]args){Scan…… 题解列表 2025年04月17日 0 点赞 0 评论 81 浏览 评分:0.0
使用for轮询一个一个地取出并判断该字符的类型并给对应的变量加一 摘要:解题思路:使用for轮询一个一个地取出并判断该字符的类型并给对应的变量加一,最终输出四种对应的变量的值注意事项:注意使用cin >> s只能读取到第一个空格前的字符串,在这里不能使用这种输…… 题解列表 2025年04月09日 1 点赞 0 评论 93 浏览 评分:10.0
C++:map容器简单使用方法_练习 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>#include<map>using namespace std …… 题解列表 2025年03月28日 0 点赞 0 评论 94 浏览 评分:0.0
1035 字符类型统计 摘要:解题思路:#include<stdio.h>#include<ctype.h>int letters=0,digits=0,spaces=0,others=0;void cou…… 题解列表 2025年03月27日 0 点赞 0 评论 201 浏览 评分:0.0
C++简单写法-------------------------------------- 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ string s; …… 题解列表 2025年03月21日 0 点赞 0 评论 101 浏览 评分:0.0
简单的令人发指 摘要:#include<stdio.h> #include<ctype.h> int main(void) { char a[100]; gets(a); int spa…… 题解列表 2024年12月28日 0 点赞 0 评论 507 浏览 评分:0.0
编写一函数,由实参传来一个字符串,统计此字符串中字母、数字、空格和其它字符的个数,在主函数中输入字符串以及输出上述结果。 只要结果,别输出什么提示信息。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void x(char a[], int b[]) { int i, t = 0,j = 0,k =…… 题解列表 2024年12月18日 0 点赞 0 评论 519 浏览 评分:0.0
字符类型统计 摘要:解题思路:数组,便于想到注意事项:参考代码:#include<string.h>void fun(char a[]){ int p=0,b=0,c=0,d=0,i; int len=strlen(a)…… 题解列表 2024年12月16日 0 点赞 0 评论 341 浏览 评分:0.0
感觉你们应该可以看懂,有两种药方 摘要:解题思路:注意事项:参考代码://方法一:#include <stdio.h>#include<string.h> void q(char x[100],int y[4]){ int len=0; …… 题解列表 2024年11月22日 0 点赞 0 评论 410 浏览 评分:10.0
自定义函数之字符类型统计c++,不含指针 摘要:#include<stdio.h> #include<string.h> int b=0,c=0,d=0,e=0; char a[1000]; void cata(char a[]) { …… 题解列表 2024年11月08日 1 点赞 0 评论 247 浏览 评分:10.0