で:http ://www.learncpp.com/cpp-tutorial/110-a-first-look-at-the-preprocessor/
ヘッダーガードの下には、次のコードスニペットがあります。
add.h:
#include "mymath.h"
int add(int x, int y);
減算.h:
#include "mymath.h"
int subtract(int x, int y);
main.cpp:
#include "add.h"
#include "subtract.h"
#include "mymath.h"
に2回表示されないようにするにはどうすればよいmain.cpp
ですか?
ありがとう。