为什么你写的答案逻辑正确但第一个测试点错误只得了50分 摘要:解题思路:省流:不要用fget函数注意事项:如果你的代码用了fget函数,你可以在它的在线测试里面运行,然后你就会惊喜地发现答案不对,为什么呢?我问了ai,ai给我的解释是:fgets会在…… 题解列表 2026年04月04日 2 点赞 0 评论 118 浏览 评分:10.0
自定义函数关于字符串的问题c语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h>voidf(chara[],int*w,int*n,int*s,…… 题解列表 2025年11月29日 0 点赞 0 评论 362 浏览 评分:0.0
[编程入门]自定义函数之字符类型统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[100]…… 题解列表 2025年11月27日 2 点赞 0 评论 282 浏览 评分:6.0
[编程入门]自定义函数之字符类型统计 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>void str_stastic(char *str);int main…… 题解列表 2025年11月03日 0 点赞 0 评论 228 浏览 评分:0.0
1035 字符类型统计 摘要:解题思路:#include<stdio.h>#include<ctype.h>int letters=0,digits=0,spaces=0,others=0;void cou…… 题解列表 2025年03月27日 1 点赞 0 评论 809 浏览 评分:0.0
简单的令人发指 摘要:#include<stdio.h> #include<ctype.h> int main(void) { char a[100]; gets(a); int spa…… 题解列表 2024年12月28日 2 点赞 0 评论 938 浏览 评分:2.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 评论 924 浏览 评分: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 评论 694 浏览 评分:0.0
感觉你们应该可以看懂,有两种药方 摘要:解题思路:注意事项:参考代码://方法一:#include <stdio.h>#include<string.h> void q(char x[100],int y[4]){ int len=0; …… 题解列表 2024年11月22日 0 点赞 0 评论 834 浏览 评分: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 评论 551 浏览 评分:10.0