我需要在我的ubuntu中安装一个模拟器.它是用C++编写的,当我尝试运行make时,我得到了这个错误strlen was not declared in this scope.任何克服此错误的解决方案?
#include <cstring>
Run Code Online (Sandbox Code Playgroud)
您的程序也可能正在寻找::strlen而不是std::strlen.如果是这种情况,请尝试
using std::strlen;
Run Code Online (Sandbox Code Playgroud)