Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/162.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 包含时出错<;ctype>;用c++;11_C++_Macos - Fatal编程技术网

C++ 包含时出错<;ctype>;用c++;11

C++ 包含时出错<;ctype>;用c++;11,c++,macos,C++,Macos,我试图在c++11上使用isapha(),因此必须包含ctype>,但当我尝试这样做时,会出现错误: fatal error: 'ctype' file not found #include <ctype> 致命错误:未找到“ctype”文件#include 可用选项有和(注意:两个“c”,而不仅仅是一个)。正确的文件名是“代码> CyType ,不是 cType ,因为它来自C++的代码> cType。h代码/代码>,C++中的所有C库都有代码> c>代码>前缀和没有。h < /

我试图在c++11上使用isapha(),因此必须包含ctype>,但当我尝试这样做时,会出现错误:

fatal error: 'ctype' file not found #include <ctype>
致命错误:未找到“ctype”文件#include

可用选项有
(注意:两个“c”,而不仅仅是一个)。正确的文件名是“代码> CyType ,不是<代码> cType <代码>,因为它来自C++的代码> cType。h代码/代码>,C++中的所有C库都有<>代码> c>代码>前缀和没有<代码>。h < /c>后缀。< /p>恩。CPPrist.COM/W/CPP/LaLaC[cType ]报告STD::在CHILD中定义了cType。但我也找到了“/usr/src/linux-headers-4.15.0-45/include/linux/ctype.h”和其他文件,如ctype.h和/usr/include/c++/7/cctype。