sách gpt4 ăn đã đi

c++ - “无限”未在此范围内声明

In lại 作者:搜寻专家 更新时间:2023-10-31 01:06:51 29 4
mua khóa gpt4 giày nike

我正在尝试编译 shogun 工具箱,但遇到了这个错误

    C:/shogun-3.0.0/shogun-3.0.0/src/shogun/../shogun/mathematics/Math.h: In static
member function 'static int shogun::CMath::is_finite(double)':
C:/shogun-3.0.0/shogun-3.0.0/src/shogun/../shogun/mathematics/Math.h:1255:20: er
ror: 'ifinite' was not declared in this scope
return ifinite(f);

函数本身看起来像这样。

        inline static int is_finite(double)
{
#if defined(isfinite) && !defined(SUNOS)
return ifinite(f);
#khác
return finite(f);
#kết thúc nếu
}

我相信这里有类似的描述:http://www.alecjacobson.com/weblog/?p=1768 ,但我不确定,因为我不包括 cmath。知道它可能是什么吗?

câu trả lời hay nhất

函数是isfinite , 不是 ifinite .

您不包括 但根据幕府将军的消息đây , 它确实包括 顺序错误:

#include 
#include
#include <<<<<<
#include
#include
#include

#include
#include
#include <<<<<<

所以你应该使用 std::isfinite .

关于c++ - “无限”未在此范围内声明,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20122267/

29 4 0
Chứng chỉ ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com
Xem sitemap của VNExpress