C++结果如何显示浮点

2025-05-09 18:29:00
推荐回答(1个)
回答1:

x和y本就是浮点数类型,cout<要控制浮点数精度,使用std::setprecision和std::fixed
cout<需要#include