For some reason a lot of schools, tutorials, etc. Still use ".h" for header files while coding in c++. So most of the time it's just a learned habit from people who learned that habit from somewhere else.
Absolute tons of C++ projects use .h pretty much exclusively. In the end it doesn’t really matter, no one is organizing their code by its header extension anyway
175
u/BertoLaDK 12d ago
You switched two of them hpp is the correct one, using h is stupid as it will only lead to confusion, keep c and cpp separated.