#include <stdio.h> int main() { float temperature; printf("输入温度:"); scanf("%f", &temperature); if (temperature > 75) { printf("火灾警报被激活,自动开门"); } return 0; }
写一个红外测温火灾自动开门的代码
最新推荐文章于 2024-05-06 14:36:49 发布
#include <stdio.h> int main() { float temperature; printf("输入温度:"); scanf("%f", &temperature); if (temperature > 75) { printf("火灾警报被激活,自动开门"); } return 0; }