+ 2
What is difference between source and header
5 Answers
+ 12
Header (.h) files should not contain any code (if they don't contain information about a C++ templated object). They contain function prototypes, typedefs, #define statements that are used by the source files that include them. Source (.c) files contain the source code implementation of the functions that were prototyped in the appropriate header file.
+ 1
Header files (.h / .hpp) contains all your class, structure, typedef and function declarations while Source files(.c / .cpp) contains all your function definitions.
+ 1
hallo leute
0
alii
- 4
Header (.h) files should not contain any code (if they don't contain information about a C++ templated object). They contain function prototypes, typedefs, #define statements that are used by the source files that include them. Source (.c) files contain the source code implementation of the functions that were prototyped in the appropriate header file.