1035 字符类型统计 摘要:解题思路:#include<stdio.h>#include<ctype.h>int letters=0,digits=0,spaces=0,others=0;void cou…… 题解列表 2025年03月27日 0 点赞 0 评论 204 浏览 评分: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
编写一函数,由实参传来一个字符串,统计此字符串中字母、数字、空格和其它字符的个数,在主函数中输入字符串以及输出上述结果。 只要结果,别输出什么提示信息。 摘要:解题思路:注意事项:参考代码:#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<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 评论 342 浏览 评分:0.0
感觉你们应该可以看懂,有两种药方 摘要:解题思路:注意事项:参考代码://方法一:#include <stdio.h>#include<string.h> void q(char x[100],int y[4]){ int len=0; …… 题解列表 2024年11月22日 0 点赞 0 评论 412 浏览 评分: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 评论 248 浏览 评分:10.0
字符统计两种方式(C语言) 摘要:方法区别:第一种:输出在自定义函数中第二种:输出在主函数中注意事项:使用scanf函数输入时,不能用 "%s" ,因为输入空格后输出只会显示空格之前的内容,所以要用 "%[^\n]" ,表示除了回车键…… 题解列表 2024年07月23日 0 点赞 0 评论 312 浏览 评分:0.0
1035 字符类型统计(选择语句分别统计) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>int main(){ char s[100]; gets(s)…… 题解列表 2024年05月16日 0 点赞 0 评论 293 浏览 评分:0.0
编写题解 1035: [编程入门]自定义函数之字符类型统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<stdlib.h> #include<string.h> void count(char* str,int* …… 题解列表 2024年05月13日 0 点赞 0 评论 137 浏览 评分:6.0
编程入门]自定义函数之字符类型统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void Statistic(char* str,int n){ int i; int character = 0; int numbe…… 题解列表 2024年05月07日 0 点赞 0 评论 140 浏览 评分:0.0