c++

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • harsh tanwani
    New Member
    • Dec 2011
    • 1

    c++

    what is the use of #include<iostre am.h> in c++ ?
  • ashitpro
    Recognized Expert Contributor
    • Aug 2007
    • 542

    #2
    Its a header file for iostream library, which provides input and output functionality using streams. It enables you the functionality to read/write from/to files, strings and standard input output devices using streams.

    e.g. if you are using cin or cout to work with stdin and stdout respectively, you will need iostream

    Comment

    • weaknessforcats
      Recognized Expert Expert
      • Mar 2007
      • 9214

      #3
      Note that <iostream.h> is obsolete. It's been that way since 1998.

      You should be using <iostream>. That may mean you need a newer compiler.

      Comment

      • BrucePerry
        New Member
        • Dec 2011
        • 7

        #4
        This is a in-built library which are already coded to make our lives easier when doing programming.
        For exmaple <iostream> needs to be included so we can use "cin" & "cout"
        Each library has a specific set of functions that we use. Another example is <sstream>, it provides us with templates and types that enable interoperation between stream buffers and string objects.

        Comment

        Working...