Sure enough - I checked the mingw include library and none of the files have the .h extension. The confusion factor comes with the Qt include library where all files DO have the .h extension.
Sure enough - I checked the mingw include library and none of the files have the .h extension. The confusion factor comes with the Qt include library where all files DO have the .h extension.
Not quite, in Qt4 both versions are available, but the one without ".h" is preferred.Originally Posted by awbaker
The C++ standard says that if you use #include <foo.h> that there is an actual file someplace called foo.h
Using the notation #include <foo> makes no assumption about the storage of the "foo" library, it just guarantees the availability of the foo functions to your program.
Also, the practical difference of <math.h> vs <cmath> is that the formers functions are automatically imported to the current namespace, while the latters aren't.
Bookmarks