|
First of all, we must clarify the meaning of adding these two lines of code
It is to avoid duplication of function definitions caused when the header file is included multiple times
If you use VC to automatically add classes, the system will automatically generate these codes
If you write the header file yourself, adding one yourself will have the same effect
For example, add in test.h
#ifndef TEST_H
#define TEST_H
.....
#endif |
|