Alle 22:36, giovedì 16 maggio 2002, Greg Freemyer ha scritto:
The only difference between .h header and "not .h" headers is that the second is put in the std namespace, afaik. That is a big different for project which use namespaces. Mine was quite small, so I did not use them, but the VC++ compiler was not very satisfied with it.
AFAIK, there is no difference at all between ".h" and "not.h", there is merely convention.
Well, quoting Stroustrup: "For every header <cX> defining name in the
namespace, there is a header
Praise
AFAIK, there is no difference at all between ".h" and "not.h", there is merely convention.
Well, quoting Stroustrup: "For every header <cX> defining name in the namespace, there is a header
defining the same in the global namespace." So the .h is the C-style header, the other is the C++ header for the same stuff, with the only difference of namespace.
The <cX> headers mentioned by Stroustrup are the Standard C library
headers, not the standard C++ library headers. Thus the standard
guarantees the existence of <cstdio> and
participants (2)
-
Alexandr Malusek
-
Praise