【发布时间】:2020-10-30 11:31:42
【问题描述】:
假设我想为 .h 和 .hpp 文件添加标头保护。标头保护的名称必须取决于文件的名称。每次通过 nerdtree 创建 .h 和 .hpp 文件时,如何插入这些标头保护?
【问题讨论】:
-
name of the header guards must depend on the name of the file如果你有 dir1/header.h 和 dir2/header.h 怎么办? -
只使用标题