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 评论 332 浏览 评分:9.9
编写题解 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 评论 249 浏览 评分:0.0
用宏和函数找最大值 摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS#include <stdio.h>#include <math.h>float function(floa…… 题解列表 2024年07月09日 0 点赞 0 评论 337 浏览 评分:0.0
[编程入门]实数的打印 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#pragma warning(disable : 4996)#define MAX_OF_THREE(a, b, c) ( (a) …… 题解列表 2024年09月01日 0 点赞 0 评论 166 浏览 评分:0.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 评论 608 浏览 评分:0.0
喜欢if的看这里 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define y(a,b,c) ({ \ double max=(a); \ if((b)>max)max=(b); \ …… 题解列表 2024年12月02日 0 点赞 0 评论 403 浏览 评分:6.0
函数 宏定义 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;float ZD(int a,int b,int c){ if(b>…… 题解列表 2025年04月16日 0 点赞 0 评论 56 浏览 评分:0.0