C++ 程序编译错误备忘录_“min”: 不是“std”的成员-CSDN博客

网站介绍:文章浏览阅读518次。std::min :错误min不是std的成员#解决方法#include <algorithm>add_definitions(-DNOMINMAX)#添加NOMINMAX预处理宏 #include <cstddef>//‘NULL’ was not declared in this scope`在这里插入代码片`#ifdef WIN32#include <direct.h>#else#include <unistd.h>#endif{_“min”: 不是“std”的成员