G52CPP
Lecture 1 & 2
Header
|
reference 省去 copy的过程
What is usually in a header file?
- Function declarations
- Macro definitions (#define)
- Constant definitions
- Possibly other things as well
- Ensure that the header file #includes everything that it needs itself
- Ensure that it doesn’t matter if the header file is #included multiple times
- Ensure that header files can be included in any order