二级C语言-自定义函数 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;double fac(int a){ i…… 题解列表 2025年09月20日 0 点赞 0 评论 277 浏览 评分:0.0
自定义函数求一元二次方程 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>float x1, x2;void dayu0(float a, float…… 题解列表 2025年09月19日 0 点赞 0 评论 357 浏览 评分:0.0
[编程入门]宏定义之找最大数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define big_num ((a>b?a:b)>c?(a>b?a:b):c)int main(){&…… 题解列表 2025年09月19日 0 点赞 0 评论 276 浏览 评分:0.0
如何方便又快捷,switch给你答案 摘要:#include <stdio.h>//完成利润计算int main(){double i1 = 0, i2 = 0, i3 = 0, i4…… 题解列表 2024年10月03日 4 点赞 0 评论 743 浏览 评分:10.0
[编程入门]宏定义之闰年判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define LEAP_YEAR(y) yearint main(){ int year=0;&…… 题解列表 2025年09月19日 0 点赞 0 评论 266 浏览 评分:0.0
[编程入门]宏定义练习之三角形面积,简简单单 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#define area sqrt(S*(S-a)*(S-b)*(S-c))#d…… 题解列表 2025年09月19日 0 点赞 0 评论 236 浏览 评分:0.0
自定义函数处理最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int max(int a, int b){ int i = 1; int m = 0; int arr[10] = { …… 题解列表 2025年09月19日 0 点赞 0 评论 181 浏览 评分:0.0
[编程入门]宏定义的练习,没话说 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define c (a%b)int main(){ int a=0,b=0; &nb…… 题解列表 2025年09月19日 0 点赞 0 评论 154 浏览 评分:0.0
[编程入门]带参数宏定义练习,一看就会,一学就费 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define app(a,b) temt=a,a=b,b=temt;int main(){ in…… 题解列表 2025年09月19日 0 点赞 0 评论 154 浏览 评分:0.0
[编程入门]结构体之成绩统计2 摘要:解题思路:注意事项:参考代码:include<stdio.h>typedef struct Student{ char ID[100]; …… 题解列表 2025年09月18日 0 点赞 0 评论 128 浏览 评分:0.0