+ 1
Header vs source file
What is the difference between a header file and a source file, and what are they used for?
2 odpowiedzi
+ 3
Headers are usually for declaring classes or functions in a namespace. Source files are for implementing and defining what you decalred in a header. This speeds up compilation times drastically, especially if you forward declare stuff in headers.