C++ include guard

前端 未结 3 1225
轮回少年
轮回少年 2021-01-13 07:10

So I know how to place an include guard in my own header files with the standard

#ifndef ...
#define ...

Now, My question is about includin

3条回答
  •  时光取名叫无心
    2021-01-13 07:24

    Include guard use to guard the content inside the guard pair. You can check the system head file string, it also has the include guard. So, don't worry about multiple inclusions.

提交回复
热议问题