摘要: 尽量缩短变量的定义范围 四舍五入(把一个单位区间往左移动了0.5个单位的距离) 进行浮点数比较时,考虑浮点误差 #include<stdio.h> #include<math.h> int main() { for(int a = 1; a <= 9; a++) for(int b = 0; b < 阅读全文
posted @ 2020-04-13 21:28 Protein_yunsheng 阅读(148) 评论(0) 推荐(0) 编辑