gpt4 book ai didi

c++ - '地板' : identifier not found

转载 作者:行者123 更新时间:2023-11-28 06:27:46 25 4
gpt4 key购买 nike

我的代码工作正常,直到我在编译时突然收到这条消息:

c:\program files (x86)\microsoft visual studio 12.0\vc\include\math.h(700): error C3861: 'floor': identifier not found

我试图排除 math.h,但我得到了同样的信息。当我双击该消息时,它会将我带到文件 math.h 的第 700 行,该文件使用 floor 函数。

然后,我创建了一个只有一个文件的空项目,其中仅包含:

#include <iostream>
int main()
{
}

而且我仍然收到该错误。我不小心删除了一些东西吗?我如何理解它是什么?

最佳答案

这对于 MSVS 来说是非常奇怪的行为。

1) 尝试创建空项目(没有预编译头文件)

2)尝试改变

#include <math.h>

#include <cmath>

如果这对创建新的空项目没有帮助,唯一的方法是确保您的 PC 上没有病毒并重新安装 Visual Studio

关于c++ - '地板' : identifier not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28223559/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com