更新时间:2023-11-29 22:02:22
只有在 header 本身需要的时候才将 include 放在 header 中.
Only put includes in a header if the header itself needs them.
例子:
size_t
.然后#include <stddef.h>
在header文件中.strlen
.然后在source文件中#include <string.h>
.size_t
. Then #include <stddef.h>
in the header file.strlen
. Then #include <string.h>
in the source file.