Showing posts with label hpp cpp h. Show all posts
Showing posts with label hpp cpp h. Show all posts

Wednesday, September 28, 2011

About hpp


What's the Difference Between .H and .HPP

  1. .hpp, .h, etc. is a loose convention for C++ header files, .hpp is a loose convention for C++ template implementation, and .h is pretty strong convention for c files.

  2. You can use .hh and .cc on UNIX and Linux programmers, different from .cpp and .h. files .hh files can helps emacs distinguish between C and C++ syntax highlighting. .cc extension looks good together with .hh, and it's shorter than .cpp.

  3. .hpp .h to differentiate between the two languages when building mixed-language products. For example, a class definition might go in an .hpp (implementation in .cpp), whereas a .h file would define only functions supported by C. To do this separation it is important to know the difference between the languages - to this end I pass *.c through gcc and *.cpp through g++.