[编程入门]宏定义之找最大数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define big_num ((a>b?a:b)>c?(a>b?a:b):c)int main(){&…… 题解列表 2025年09月19日 0 点赞 0 评论 284 浏览 评分:0.0
喜欢if的看这里 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define y(a,b,c) ({ \ double max=(a); \ if((b)>max)max=(b); \ …… 题解列表 2024年12月02日 0 点赞 0 评论 588 浏览 评分:6.0
使用c语言函数 摘要:解题思路:使用c语言自带的数学函数注意事项:参考代码:#include<stdio.h>#include<math.h>#define compare(a,b,c) d=fmax(a,b),e=fma…… 题解列表 2024年09月11日 1 点赞 0 评论 860 浏览 评分:0.0
[编程入门]实数的打印 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#pragma warning(disable : 4996)#define MAX_OF_THREE(a, b, c) ( (a) …… 题解列表 2024年09月01日 0 点赞 0 评论 322 浏览 评分:0.0
用宏和函数找最大值 摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS#include <stdio.h>#include <math.h>float function(floa…… 题解列表 2024年07月09日 0 点赞 0 评论 473 浏览 评分:0.0
编写题解 1041: [编程入门]宏定义之找最大数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define M(a,b) (a>b)?a:b float sss(float x,float y,float z){ …… 题解列表 2024年06月14日 0 点赞 0 评论 434 浏览 评分:0.0
1041 宏定义找最大数(使用三目运算符) 摘要:解题思路:注意事项:参考代码:#include#define zuidashu(a,b,c,max) a=a>b?a:b; max=a>c?a:c;void hanshu(float a,float …… 题解列表 2024年05月16日 0 点赞 0 评论 458 浏览 评分:9.9
恒定义找最大数 摘要:解题思路:根据题目为三个数利用三目运算符求最大值注意事项:函数:注意返回值应该为浮点型参考代码:#include<stdio.h>#define MAX(a,b) (a>b?a:b)float c…… 题解列表 2023年12月23日 0 点赞 0 评论 183 浏览 评分:0.0
宏定义之找最大数 摘要:解题思路:【LP】宏定义max函数进行解题for循环输出两行注意事项:#define max(a,b) ((a)>(b)?(a):(b)我们使用宏定义来实现了 max 函数和 count 宏。max …… 题解列表 2023年12月13日 0 点赞 0 评论 354 浏览 评分:9.9
[编程入门]宏定义之找最大数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define Max(a,b,c) ((a>b?a:b))>c?(a>b?a:b):cdouble max(double* p){ …… 题解列表 2023年11月13日 0 点赞 0 评论 233 浏览 评分:9.9