兵能左右走吗象棋:我想要有描写教室闷热的语段或语句。

来源:百度文库 编辑:神马品牌网 时间:2024/05/01 00:06:53
我急要描写夏日教室闷热的语句,谢!

人体感觉最舒适温度是21-23摄氏度,
高于27摄氏度就觉得有点热,
低于17摄氏度就觉得有点冷,
31-33以上就觉得很热,
37摄氏度以上就会中暑。

这段内容可以用条件语句描述。
float t;

t = get_current_temperature();
if ( t <= 17.0) {
printf("It is cold !\n");
} else if ( t > 17.0 && t < 21.0) {
printf("It is little cold now !\n");
} else if (t >=21.0 && t <=23) {
printf("Very good, It is comfortable!\n");
} else if (t > 23.0 && t < 27.0) {
printf("not bad !\n");
} else if (t>=27 && t <31.0) {
printf("Please turn airconditioner on !\n");
} else if ( ...) {
} else if ( ...) {
} else { ...
}

for(int i = 0 ; i < 100000; i++)
cout << " hot " << endl;

上好段网,啥都有。