Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我用 C++ 编写了一个程序。它包括一个 ctype 头文件。
使用命令编译时g++ sri.cpp出现此错误:
g++ sri.cpp
fatal error: ctype: No such file or directory
请帮我解决这个问题。
您可以查看我们的代码吗? 如果你写过#include <ctype>,它应该是#include <cctype>or #include <ctype.h>,但如果这不起作用,那么我想你根本没有 ctype 来编译......
#include <ctype>
#include <cctype>
#include <ctype.h>