摘要:
最长劳动时间 输入n个人的劳动时间,时间用类型为tTime的结构体数组变量存放,输出劳动时间最长的数据。tTime的定义如下: struct tTime { int hour, min, sec; }; 请完成一个计算最长劳动时间的C++函数,该函数原型是: tTime maxTime(tTime
阅读全文
posted @ 2024-05-16 19:36
RuntimeError-J
阅读(232)
推荐(0)
摘要:
小写英文字符变大写字符 #include <iostream> using namespace std; int main() { char c_lower; cin>>c_lower; ///////////begin//////// char c_upper; if (c_lower <= 'z
阅读全文
posted @ 2024-05-16 14:35
RuntimeError-J
阅读(60)
推荐(0)
摘要:
计算医疗报销费用 完成程序,只在Program和End之间增加代码。 编写函数double MedicalReimbursement( double totalFee, double outerFee, double startLine, double rbRatio, double capLine
阅读全文
posted @ 2024-05-16 01:42
RuntimeError-J
阅读(61)
推荐(0)
摘要:
BMI指数 体质量指数BMI(Body Mass Index),简称体质指数,是国际上常用的衡量人体胖瘦程度以及是否健康的一个标准。 设体重为w(单位:公斤),身高为h(单位:米),BMI指数计算方法是:bmi=w/(h2),其中2表示平方。BMI判断体型胖瘦的标准是:bmi < 18.5,属于偏瘦
阅读全文
posted @ 2024-05-16 01:36
RuntimeError-J
阅读(151)
推荐(0)
摘要:
氨基酸的平均原子量 蛋白质中的氨基酸是由氧、碳、氮、硫、氢5种元素构成, 这些元素的相对原子量如下表示: ———————— 元素 相对原子量 ———————— 氧(O) 15.9994 碳(C) 12.011 氮(N) 14.0067 硫(S) 32.066 氢(H) 1.0079 ————————
阅读全文
posted @ 2024-05-16 00:47
RuntimeError-J
阅读(96)
推荐(0)
摘要:
两点间的折半距离 设P1、P2为平面上的两点,坐标分别为(x1, y1)和(x2, y2), 定义P1和P2之间的折半距离为: 根据给定的两点坐标x1、y1、x2、y2,利用上述公式计算两点间 的折半距离,并将结果存入变量d中。 说明:涉及的开根号、求平方运算,可以用cmath库中sqrt、pow函
阅读全文
posted @ 2024-05-15 19:44
RuntimeError-J
阅读(242)
推荐(0)
摘要:
身高预测 题目:在不考虑后天因素影响的情况下,成年人的身高可以基于其父母亲的身高, 有下面的身高预测公式: 男性成人时身高 = (父亲身高 + 母亲身高) * 0.54 女性成人时身高 = (父亲身高 * 0.923 + 母亲身高) / 2 请上述公式,完成如下的身高预测函数功能: heightPr
阅读全文
posted @ 2024-05-15 19:23
RuntimeError-J
阅读(136)
推荐(0)
posted @ 2021-11-18 17:25
RuntimeError-J
阅读(0)
推荐(0)
posted @ 2021-11-18 16:30
RuntimeError-J
阅读(0)
推荐(0)
posted @ 2021-11-18 08:50
RuntimeError-J
阅读(0)
推荐(0)
posted @ 2021-11-15 14:11
RuntimeError-J
阅读(0)
推荐(0)
posted @ 2021-11-15 13:37
RuntimeError-J
阅读(0)
推荐(0)
posted @ 2021-11-15 11:29
RuntimeError-J
阅读(0)
推荐(0)
posted @ 2021-11-15 10:30
RuntimeError-J
阅读(0)
推荐(0)
posted @ 2021-11-15 09:25
RuntimeError-J
阅读(0)
推荐(0)
posted @ 2021-11-15 08:26
RuntimeError-J
阅读(0)
推荐(0)
posted @ 2021-11-15 07:55
RuntimeError-J
阅读(0)
推荐(0)
posted @ 2021-11-14 22:36
RuntimeError-J
阅读(0)
推荐(0)
posted @ 2021-11-14 20:55
RuntimeError-J
阅读(0)
推荐(0)
posted @ 2021-11-14 17:42
RuntimeError-J
阅读(0)
推荐(0)
posted @ 2021-11-14 16:58
RuntimeError-J
阅读(0)
推荐(0)
posted @ 2021-11-14 15:56
RuntimeError-J
阅读(0)
推荐(0)
posted @ 2021-11-14 13:28
RuntimeError-J
阅读(0)
推荐(0)
posted @ 2021-11-14 13:05
RuntimeError-J
阅读(0)
推荐(0)
摘要:
原题链接 代码: #include <iostream> #include <stdio.h> #include <queue> #include <memory.h> using namespace std; typedef pair<int, int> P; const int N = 110;
阅读全文
posted @ 2021-11-13 22:12
RuntimeError-J
阅读(53)
推荐(0)
posted @ 2021-11-13 13:49
RuntimeError-J
阅读(1)
推荐(0)
posted @ 2021-11-13 09:41
RuntimeError-J
阅读(0)
推荐(0)
posted @ 2021-11-13 09:15
RuntimeError-J
阅读(0)
推荐(0)
posted @ 2021-11-13 08:42
RuntimeError-J
阅读(0)
推荐(0)
posted @ 2021-11-13 07:45
RuntimeError-J
阅读(0)
推荐(0)
posted @ 2021-11-12 21:56
RuntimeError-J
阅读(0)
推荐(0)
posted @ 2021-11-12 20:43
RuntimeError-J
阅读(0)
推荐(0)
posted @ 2021-11-12 20:05
RuntimeError-J
阅读(0)
推荐(0)
posted @ 2021-11-12 19:18
RuntimeError-J
阅读(0)
推荐(0)
posted @ 2021-11-12 15:49
RuntimeError-J
阅读(0)
推荐(0)
posted @ 2021-11-12 14:58
RuntimeError-J
阅读(0)
推荐(0)
posted @ 2021-11-12 13:34
RuntimeError-J
阅读(0)
推荐(0)
posted @ 2021-11-12 13:08
RuntimeError-J
阅读(0)
推荐(0)
posted @ 2021-11-12 12:36
RuntimeError-J
阅读(0)
推荐(0)
posted @ 2021-11-12 10:55
RuntimeError-J
阅读(0)
推荐(0)