可能重复: C中整数除法的行为是什么?
为什么这行代码没有返回任何内容?
float i = 10/3; if (i>3) cout << i;
如果有帮助,请使用CodeBlocks编译器.
c++ math rounding
c++ ×1
math ×1
rounding ×1