四舍五入 1.头文件:cmath 函数:round( ) 补充:ceil()不小于自变量的最小整数 向上取整 floor()不大于自变量的最大整数 向下取整 2. int a = a + 0.5; 此时的a已经四舍五入过了