使用数码管显示负温度时需要把负数转换为绝对值
#include<math.h>
使用abs
或者自己写函数
#define ABS(x) ((x)>=0?(x):-(x)))
posted on 2017-04-01 20:04 夜空的星星* 阅读(7309) 评论(0) 编辑 收藏 举报