At: http://www.learncpp.com/cpp-tutorial/110-a-first-look-at-the-preprocessor/
Under Header guards, there are those code snippets:
add.h:
#include "mymath.h"
int add(int x, int y);
subtract.h:
#include "mymath.h"
int subtract(int x, int y);
main.cpp:
#include "add.h"
#include "subtract.h"
How can I avoid #include "mymath.h"
from appearing twice in main.cpp
?
Thanks.