Before You Start
Here's the key idea:
- A source file (
.cpp
) contains the definitions of functions (the actual code that implements them).- Source files need to be compiled (into object files
.o
).
- Source files need to be compiled (into object files
- A header file (
.hpp
) contains forward declarations.- Header files do not need to be compiled.
- They have their content
#include
d into source files.
And what about object files?
Object files need to be linked together to create an executable.
(When logged in, completion status appears here.)