头文件中的ifndef/define/endif 是干什么用的

头文件中的ifndef/define/endif 是干什么用的?

答:防止头文件被重复包含。

原文地址:https://www.cnblogs.com/dingou/p/10549449.html