小白写代码-宏定义练习之三角形面积(C语言) 摘要:解题思路:注意事项:注意定义和输出area时的S参考代码:#include<stdio.h>#define S(a,b,c) (a+b+c)/2#define area(S,a,b,c) sqrt(S…… 题解列表 2022年07月14日 0 点赞 0 评论 164 浏览 评分:0.0
编写题解 1038: [编程入门]宏定义练习之三角形面积 摘要:解题思路:参考路知予的代码注意事项:参考代码:#include <stdio.h> #include <math.h> #define S (a+b+c)/2 //宏定义 #defin…… 题解列表 2022年08月11日 0 点赞 0 评论 151 浏览 评分:0.0
宏定义练习之三角形面积 摘要: #include #include #include using namespace std; #define fun1(S) S=(a+b+c)/2;…… 题解列表 2022年10月12日 0 点赞 0 评论 147 浏览 评分:0.0
C语言 宏定义练习之三角形面积& 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#define S_(x,y,z) (x+y+z)/2#define area(S,a,b,c) sqr…… 题解列表 2022年11月19日 0 点赞 0 评论 154 浏览 评分:0.0
宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h> #define s (a+b+c)/2#define area sqrt(s*(s-a)*(s-b)*…… 题解列表 2022年12月19日 0 点赞 0 评论 146 浏览 评分:0.0
1038: [编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码://三角形面积=SQRT(S*(S-a)*(S-b)*(S-c)) 其中S=(a+b+c)/2,a、b、c为三角形的三边。 定义两个带参的宏,一个用来求area, 另一个…… 题解列表 2023年01月03日 0 点赞 0 评论 112 浏览 评分:0.0
宏定义练习之三角形面积,学的浅咯,还可以这样 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#define y1(a,b,c) S=(a+b+c)/2#define y2(a,b,c) sqrt(…… 题解列表 2023年01月20日 0 点赞 0 评论 94 浏览 评分:0.0
[编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>#include<cmath>#define Area(S,a,b,c) sqrt(S*(S-a)…… 题解列表 2023年03月19日 0 点赞 0 评论 99 浏览 评分:0.0
给用Java的开一下荒土 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[] a…… 题解列表 2023年04月02日 0 点赞 0 评论 86 浏览 评分:0.0
236521541468764184 摘要:解题思路:#include <bits/stdc++.h>using namespace std;int main(){ double a,b,c,s,p; cin>>a>>b>>c; …… 题解列表 2023年04月22日 0 点赞 0 评论 85 浏览 评分:0.0