C++%f和%lf的区别

%f代表单精度浮点型数据(float),%lf代表双精度浮点型数据(double)。

原文地址:https://www.cnblogs.com/code-fun/p/15036849.html