[Error] 'strlen' was not declared in this scope

在写编译原理实验的时候,遇到了这个错误:

[Error] 'strlen' was not declared in this scope

查阅之后得知,<string.h>里没有strlen,<cstring>才有。

#include<cstring>

 头头儿加上这行就好了。

原文地址:https://www.cnblogs.com/xuaoium/p/13045429.html