Implicitly declaring library function ‘strlen‘ with type ‘unsigned long (const char *)‘

  • 是因为没有引入对应的库
#include <string.h>

引入就可以了

请添加图片描述

猜你喜欢

转载自blog.csdn.net/baidu_40537062/article/details/124265995