A
A. Saksena
For c++ header files which is better .h or .hpp extension?. if .hpp why?
Abhishek
Abhishek
A. Saksena said:For c++ header files which is better .h or .hpp extension?. if .hpp why?
A. Saksena said:For c++ header files which is better .h or .hpp extension?. if .hpp why?
A. Saksena said:For c++ header files which is better .h or .hpp extension?. if .hpp why?
Abhishek
Thomas said:I use ".hpp" for C++ headers and ".h" for C language headers.
The ".hpp" reminds me that the file contains statements for
the C++ language which are not valid for the C language, such
as "class" declarations.
I am sure it can be changed in emacs, and quite easily. Vim also.James Aguilar said:Generally, to something like this, I would say GFY and leave it be, but I
thought I should throw in there that emacs has different font lock modes for
different types of files -- c and c++ syntaxes are colored differently. In
this case, it is useful not to have to tell emacs what file is what. Emacs
assumes .h is a c-language file, whereas .hpp is a c++-language file, so,
for the same reason that you stated for .c and .cpp files, it is also useful
to have .h and .hpp files.
For me. You can do what you want. I can always do a massive renaming binge
on your files if I ever have to look at them.
- JFA1
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.