H or HPP? This has been driving me crazy!
H or HPP? This has been driving me crazy!
What is the file going to do? (I don't know what .hpp would be...better go look it up I guess )
There is a difference between tedious and difficult.
Sounds like the fellow is trying to decide between .h and .hpp for header filename extensions in C++. My own opinion is that it doesnt really matter most of the time, as long as one is consistent.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
I googled them both, and found that .h was for header file (which I knew), but everywhere that had .hpp listed they specifically said "program header." I thought maybe there was a small functional or semanitc difference, but laserlight's post says otherwise. I think it wise to side with laserlight. Is that correct?
There is a difference between tedious and difficult.
The extension can be anything you want, .java, .happy or .bush. The file is just copy-and-pasted into the source file that includes it.
Most people use .h is used for C headers, and .hpp for C++ headers. For example, the boost C++ library uses .hpp
Is either one defined in the C++ standard? (I would look it up but I don't know where...)
There is a difference between tedious and difficult.
A quick check says no, although the standard does use .h in its examples.
Headers for the standard library for C++ don't have an extension. E.g. <algorithm> <cstdlib> <cstdio> <vector>. Other than that, I don't think there are any restrictions for your own headers.