what is the use of #include<iostre am.h> in c++ ?
c++
Collapse
X
-
Tags: None
-
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 -
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
-
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
Comment