结构体之成绩记录 摘要:解题思路:此处用的结构体数组,将结构体内容定义在主函数外面,这样子函数就能直接操作结构体的变量,分别用赋值函数与打印函数表述出注意事项:参考代码:#include"stdio.h"int n;stru…… 题解列表 2022年06月23日 0 点赞 0 评论 542 浏览 评分:0.0
结构体之成绩统计2 摘要:解题思路:写三个子函数,分别赋值,求平均,求最大注意事项:参考代码:#include"stdio.h"int n;struct{ char num[20]; char name[20]; …… 题解列表 2022年06月23日 0 点赞 0 评论 565 浏览 评分:0.0
剪刀石头布 摘要:解题思路:注意事项:参考代码:#include"stdio.h"enum leixing {shitou,bu,dao};enum shuying {shu=-1,ping,ying};int mai…… 题解列表 2022年06月23日 0 点赞 0 评论 1595 浏览 评分:0.0
尽量详细的解答 53行 内存1084 耗时0ms 随便写写,解释都写在代码里了。```cpp#include//输入输出用的inlineintread()//速读习惯问题,可以用cin或scanf代替{intx=0,f=1;charch=getchar();while(ch57){if(ch=='-')f=-f;ch=getchar();}while 题解列表 2022年06月24日 0 点赞 0 评论 660 浏览 评分:9.9
编写题解 1020: [编程入门]猴子吃桃的问题——逆向思维 解题思路:逆向思维注意事项:参考代码:n=int(input())m=1foriinrange(1,n):m=(m+1)*2print(m) 题解列表 2022年06月24日 0 点赞 0 评论 772 浏览 评分:0.0
1461: 蓝桥杯基础练习VIP-FJ的字符串(递归) 摘要:解题思路:注意事项:参考代码:def fun(n): if n==1: return 'A' else: return fun(…… 题解列表 2022年06月24日 0 点赞 0 评论 544 浏览 评分:0.0
1461: 蓝桥杯基础练习VIP-FJ的字符串 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> void fun(char *a,char ls[]){ int len=strl…… 题解列表 2022年06月24日 0 点赞 0 评论 513 浏览 评分:0.0
两句话搞定 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; while (cin >> a) { cout << …… 题解列表 2022年06月24日 0 点赞 0 评论 1164 浏览 评分:9.9
字符串中间和后边*号删除 摘要:解题思路:注意事项:参考代码:#include<string.h>#include<stdio.h> int fun(char *a) { int i…… 题解列表 2022年06月24日 0 点赞 0 评论 580 浏览 评分:0.0
简易代码(C)望空破茧 摘要:解题思路:编写程序,输入一批学生的成绩,遇0或负数则输入结束,要求统计并输出优秀(大于85)、通过(60~84)和不及格(小于60)的学生人数。注意事项: 用一个一维数组储存 …… 题解列表 2022年06月24日 0 点赞 0 评论 645 浏览 评分:0.0