C语言程序设计教程(第三版)课后习题9.3 (Java代码) 摘要:import java.util.Scanner; //抄别人的 import java.text.DecimalFormat; public class Main{ public sta…… 题解列表 2017年08月31日 1 点赞 0 评论 1196 浏览 评分:2.0
C语言程序设计教程(第三版)课后习题9.3 (C语言代码) 摘要:参考代码:#include <stdio.h>#include <stdlib.h>#include <math.h>#define gett(a,b,c) ((a+b+c)/2);#define g…… 题解列表 2017年07月20日 0 点赞 0 评论 888 浏览 评分:2.0
宏定义的三角形求法--海伦公式 摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_DEPRECATE#pragma warning(disable:4996)#include<stdio.h>#includ…… 题解列表 2021年08月29日 0 点赞 0 评论 260 浏览 评分:2.0
(轻轻松松)宏定义练习之三角形面积 摘要:解题思路: 直接用它给的公式算起!注意事项: 要用开方!参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int …… 题解列表 2023年11月27日 0 点赞 0 评论 86 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题9.3 (Java代码) 摘要:解题思路:注意事项: import java. text.DecimalFormat;DecimalFormat s = new DecimalFormat("0.000");需要记忆!参考代码:im…… 题解列表 2017年12月28日 0 点赞 0 评论 675 浏览 评分:0.0
编写题解 1038: [编程入门]宏定义练习之三角形面积--解题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>#define area sqrt(S*(S-a)*(S-b)*(S-c))#define S ((a+b+c)/2)usi…… 题解列表 2022年03月08日 0 点赞 0 评论 68 浏览 评分:0.0
宏函数两种方法求面积 课后习题9.3 (C语言代码) 摘要:注意事项:sqrt在math.h中。注意宏函数的语法。参考代码://方法一: #include <stdio.h> #include <math.h> #define S(a,b,c) (a+b…… 题解列表 2018年12月21日 0 点赞 0 评论 675 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题9.3 (C语言代码) 摘要:解题思路:注意事项:1、宏只是简单的替换,使用宏做算数运算的时候要特别注意替换后的运算顺序。2、为了避免替换后的运算顺序错误,宏运算最好加括号。参考代码:#include<stdio.h> #inc…… 题解列表 2018年05月02日 0 点赞 0 评论 696 浏览 评分:0.0
[编程入门]宏定义练习之三角形面积-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>#define S ((a+b+c)/2)#define M sqrt(S*(S-a)*(S-b)*…… 题解列表 2020年08月23日 0 点赞 0 评论 223 浏览 评分:0.0
[编程入门]宏定义练习之三角形面积-题解(C语言代码) 摘要: ```c #include #include #define S(a,b,c) s=(a+b+c)/2; #define SQRT(a,b,c) sq=sqrt(s*(s-…… 题解列表 2020年03月08日 0 点赞 0 评论 582 浏览 评分:0.0