编写一函数,由实参传来一个字符串,统计此字符串中字母、数字、空格和其它字符的个数,在主函数中输入字符串以及输出上述结果。 只要结果,别输出什么提示信息。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void x(char a[], int b[]) { int i, t = 0,j = 0,k =…… 题解列表 2024年12月18日 0 点赞 0 评论 520 浏览 评分:0.0
简单的令人发指 摘要:#include<stdio.h> #include<ctype.h> int main(void) { char a[100]; gets(a); int spa…… 题解列表 2024年12月28日 0 点赞 0 评论 508 浏览 评分:0.0
C++简单写法-------------------------------------- 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ string s; …… 题解列表 2025年03月21日 0 点赞 0 评论 101 浏览 评分: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 评论 203 浏览 评分:0.0
C++:map容器简单使用方法_练习 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>#include<map>using namespace std …… 题解列表 2025年03月28日 0 点赞 0 评论 94 浏览 评分:0.0
1035: [编程入门]自定义函数之字符类型统计 摘要:参考代码:publicstaticvoidmain(String[]args){Scan…… 题解列表 2025年04月17日 0 点赞 0 评论 81 浏览 评分:0.0