+-

我正在尝试编写一个使用std :: isnan()和MSVC 2010的程序.我包含cmath但不幸的是编译器返回错误:
isnan is not part of the std namespace
MSVC 2010是否支持std(AKA C 11)的此功能?
最佳答案
std :: isnan在< cmath>中: http://en.cppreference.com/w/cpp/numeric/math/isnan
你的问题可能是VS2010,它的C 11支持很差.我建议抓住VS2015,这在这方面要好得多.
可以看出here VS2010只有_isnan.
点击查看更多相关文章
转载注明原文:c – MSVC 2010中的isnan()在哪里? - 乐贴网