[Description]: What is the temperature, humidity ......, ..
[Analysis]: The formula is provided.
// 252 k 0 Ms/* in which exp represents the x-Power Solution of e, just solve it according to the formula in the question !! */# Include <iostream> # include <iomanip> # include <cmath> using namespace std; int main () {double t, d, h; char alpha; while (1) {t = d = h = 101; for (int I = 0; I <2; I ++) {cin> alpha; if (alpha = 'e ') return 0; else if (alpha = 't') cin> T; else if (alpha = 'd') cin> D; elsecin> h ;} if (h = 101) h = t + 0.5555*(6.11 * exp (5417.7530*(1/273. 16-1/(d + 273.16)-10); if (d = 101) d = 1/(1/273. 16)-(log (h-t)/0.5555) + 10.0)/6.11)/5417.7530)-273.16; if (t = 101) t = h-0.5555 * (6.11 * exp (5417.7530*(1/273. 16-1/(d + 273.16)-10); cout <setprecision (1) <fixed <"T" <t <"D" <d <"H"
POJ 3299 Humidex (simple question)