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

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

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

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

#include<cstring>

 头头儿加上这行就好了。

posted @ 2020-06-04 18:48  Syuao  阅读(14490)  评论(0编辑  收藏  举报