| | |
hpp?
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
Does anyone actually use the .hpp file extension for C++ header files? I've never seen it used, but I was just working with geany, and I noticed that it only syntax highlights C++ specific things if the file extension is .hpp (or .cpp, obviously, but not .h).
So what's the deal with that?
So what's the deal with that?
I'm a student. If my statements seem too absolute, feel free to coat them with "In my opinion..." or "I believe...".
From what I understand, as long as a file has C++ syntax in it, it can be used as part of a C++ project ( if its a resource file its a different story I suppose, since I haven't really messed around with those @_@).
For example, the iostream header files, etc have no extensions. They're just 'raw files' with C++ syntax in them. You could probably get away with making up a fake extension that the computer doesn't recognize as a part of any program and still be able to use it in a C++ program so long as you're including it.
This is an assumption though, given the way headers are linked during compile time (its like adding the data from different files into one single file to be executed - so really I don't see why the extension matters @_@ )
-Alex
For example, the iostream header files, etc have no extensions. They're just 'raw files' with C++ syntax in them. You could probably get away with making up a fake extension that the computer doesn't recognize as a part of any program and still be able to use it in a C++ program so long as you're including it.
This is an assumption though, given the way headers are linked during compile time (its like adding the data from different files into one single file to be executed - so really I don't see why the extension matters @_@ )
-Alex
Look at an interesting discussion about C++ file extensions:
http://stackoverflow.com/questions/1...ss-definitions
There are others C++ header file extensions in use: .hh, .hxx et al
http://stackoverflow.com/questions/1...ss-definitions
There are others C++ header file extensions in use: .hh, .hxx et al
![]() |
Similar Threads
- Borland c++ builder question (C++)
- Passing arrays of objects to functions (C++)
- How to call constructor for descendant of TObject ? (C++)
- undefined class errors (C2079) (C++)
- unresolved external error upgrading 6.0-7.1 (C++)
- Problem with pointers (C++)
- Can you add pictures/sounds in a win32 console app? (C)
- Address Book Application... (here's what I have done so far..) (C++)
- Creating and destroying objects (C++)
- problems wid cpp files (C++)
Other Threads in the C++ Forum
- Previous Thread: c++ program to find the product of two array of integers-clear errors?
- Next Thread: Using 2D Arrays inside Classes
| Thread Tools | Search this Thread |
api array based beginner bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion count database delete deploy desktop developer directshow dll download dynamic email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream int integer java lib linkedlist linker linux list loop looping loops map math matrix memory multiple news node number output parameter pointer problem program programming project python random read recursion recursive return sorting string strings struct temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






