摘要: 1.四舍五入 <cmath> floor() //不大于自变量的最大整数 ceil() //不小于自变量的最大整数 round() //四舍五入到最邻近的整数 2.输出位数 <iomanip> cout << setfill('0') << setw(2) << hh; //输出例如“02” 3.保 阅读全文
posted @ 2016-02-03 20:27 shadowhu 阅读(310) 评论(0) 推荐(0) 编辑