CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Threaded View

  1. #2
    Join Date
    Feb 2005
    Location
    "The Capital"
    Posts
    5,306

    Re: C++ General: What are C++ Headers?

    In addition:

    On certain compilers, for example, you may find 'iostream' as well as 'iostream.h'. As pointed out above including 'iostream' keeps the members in the std namespace whereas usage of 'iostream.h' adds up the members into the global namespace. This may lead to ambiguities that the namespaces were designed to avoid. This is another small reason in addition to others mentioned above for not including the '.h' extension headers.


    Last edited by Andreas Masur; September 4th, 2005 at 10:29 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured