dimanche 19 juillet 2015

Difference between .h and .hpp [duplicate]

This question already has an answer here:

Most of the modern C++ code that I see these days, seem to use .hpp for the header files instead of .h extension. Also the current trend seems to be to declare and define the functions in the .hpp file itself instead of a separate .cpp file and then call the classes so defined in .cpp files. My question is how is .hpp really different from .h and why this trend of defining everything in a .hpp file.

Aucun commentaire:

Enregistrer un commentaire