Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Difference between .h and no .h [modified]

Difference between .h and no .h [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
questionjsonhelp
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    HakunaMatada
    wrote on last edited by
    #1

    What is the difference between #include (iostream.h) and #include (iostream). Are they different? If so, what are their differences? -- modified at 0:29 Wednesday 2nd August, 2006

    --- :beer: Hakuna-Matada :beer: It means no worries for the rest of your days... It's our problem free, Philosophy :jig:

    _ H 2 Replies Last reply
    0
    • H HakunaMatada

      What is the difference between #include (iostream.h) and #include (iostream). Are they different? If so, what are their differences? -- modified at 0:29 Wednesday 2nd August, 2006

      --- :beer: Hakuna-Matada :beer: It means no worries for the rest of your days... It's our problem free, Philosophy :jig:

      _ Offline
      _ Offline
      _AnsHUMAN_
      wrote on last edited by
      #2

      Hakuna-Matada wrote:

      #include (iostream.h)

      To link to Old Standard C++ Library

      Hakuna-Matada wrote:

      #include (iostream).

      Used to link to New Standard C++ Lib In the new C++ lib there are some differences . For ex 1)open functions do not take a third parameter (the protection parameter). 2)You cannot create streams from file handles. etc....

      Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

      1 Reply Last reply
      0
      • H HakunaMatada

        What is the difference between #include (iostream.h) and #include (iostream). Are they different? If so, what are their differences? -- modified at 0:29 Wednesday 2nd August, 2006

        --- :beer: Hakuna-Matada :beer: It means no worries for the rest of your days... It's our problem free, Philosophy :jig:

        H Offline
        H Offline
        Heinz_
        wrote on last edited by
        #3

        I think iostream.h is keept for backwards compatibility, all the old and new stuff is in iostream, don't know why they switched.

        Z 1 Reply Last reply
        0
        • H Heinz_

          I think iostream.h is keept for backwards compatibility, all the old and new stuff is in iostream, don't know why they switched.

          Z Offline
          Z Offline
          Zac Howland
          wrote on last edited by
          #4

          Just FYI: They didn't switch. The .h versions were non-standard. That is, they were what everyone used before there was a standard. The problem was that each system implemented them slightly differently. When the standard was released, most systems kept the .h versions for backward compatability. They are now being phased out of almost all systems completely.

          If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week Zac

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups