需要在项目源代码之前加入头文件 ---- #define include<sting.h>
strlen 需要在头文件中被预编译
本文介绍了在C/C++项目源代码编写时,如何在开始处使用`#define`包含<string.h>头文件,确保strlen函数能够在编译阶段被预处理。
需要在项目源代码之前加入头文件 ---- #define include<sting.h>
strlen 需要在头文件中被预编译
5300

被折叠的 条评论
为什么被折叠?