0

Can someone explain header gaurd in simple words and also with a small example?

1st Jun 2020, 12:29 PM
SHALINI
2 Antworten
+ 2
header guards prevent you from including the same file twice. Like if in your code there are lines: #include <myheader.h> #include <myheader.h> /*some code*/ The second include would be ignored.
1st Jun 2020, 12:54 PM
你知道規則,我也是
你知道規則,我也是 - avatar
1st Jun 2020, 2:38 PM
SHALINI