为什么我不能使用round(double)?

问题描述 投票:0回答:0

当我尝试使用

round()
函数,同时传递
double
作为参数时,VSCode 向我显示此错误:

重载函数“round”的多个实例与参数列表匹配:

函数“std::round(float __x)”(在“C:\msys64\usr\lib\gcc\x86_64-pc-msys .3.0\includ”的第1756行声明

c++ visual-studio-code c++17
© www.soinside.com 2019 - 2024. All rights reserved.