Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
#include <example.(h?)>
#5
(07-29-2010, 07:49 PM)mmki Wrote: its a good idea to always put the .h on the end. i think that goes with most like windows.h and iosteam.h
I think it depends on the compiler is that correct?

When it comes to standard C headers, they always end with the .h extension. If you ever see them called without the extension then the programmer is writing non portable, malformed code.

For standard C++ headers, however, there is no file extension. The files iostream.h and iostream are entirely different. Once upon a time the C++ headers had file extensions. But then C++ was standardized and the file extensions were dropped. Thus iostream.h is the old header and will contain now-obsolete code.
Ho, ho, ho! Well, if it isn't fat stinking billy goat Billy Boy in poison!
How art thou, thou globby bottle of cheap, stinking chip oil?
Come and get one in the yarbles, if ya have any yarbles, you eunuch jelly thou!
Reply


Messages In This Thread
#include <example.(h?)> - by Reality - 07-18-2010, 09:42 PM
RE: #include <example.(h?)> - by MrD. - 07-24-2010, 11:20 AM
RE: #include <example.(h?)> - by mmki - 07-29-2010, 07:49 PM
RE: #include <example.(h?)> - by Disease - 11-23-2010, 08:51 PM
RE: #include <example.(h?)> - by MrD. - 07-30-2010, 04:36 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  c++ include error (geany) Socrates 4 1,645 10-28-2009, 01:41 PM
Last Post: TheDoctor

Forum Jump:


Users browsing this thread: 1 Guest(s)