March 2023
Beginner
441 pages
5h 1m
English
We can split our C++ code into multiple files. By convention, there are two kinds of files into which we can store our C++ source: header files (headers) and source files.
Header files are source code files where we usually put various declarations. Header files usually have the .h (or .hpp) extension. Source files are files where we can store our definitions and the main program. They usually have the .cpp (or .cc) extension.