Search code examples
c++iostreamheader-files

Difference between iostream and iostream.h


What is the difference between iostream and iostream.h?


Solution

  • iostream.h is deprecated by those compilers that provide it, iostream is part of the C++ standard.

    To clarify explicitly there is no mention of iostream.h at all in the current C++ standard (INCITS ISO IEC 14882 2003).

    Edit: As @Jerry mentioned, not only does the current standard not mention it, but no standard for C++ mentions it.