answersLogoWhite

0


Best Answer

iostream.h is deprecated and should not be used. It was originally shipped with early versions of C++ which used CFront to produce C compatible code from C++ source. Later, when C++ was standardised, iostream.h became iostream (without the .h extension), but many implementers shipped with both versions. However, iostream.h is not standards compliant and should not be used today. In most cases the file can simply be deleted unless you have non-compliant legacy code that requires it.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

The iostream class library is used to perform input and output to various devices and files. The most common instances are stdout as cout, stdin as cin, and stderr as cerr, but the library can be used with any file, or device that the operating system can represent as a file.

This answer is:
User Avatar

User Avatar

Wiki User

10y ago

The iostream header file gives access to user-defined input and output streams as well as the global console stream objects std::cin, std::cout and std::cerr. These global streams allow input and output to be redirected via the command line and are synonymous with stdin, stdout and stderr in C. Unless otherwise specified from the command line (or altered programmatically), std::cin represents the console keyboard, while std::cout and std::cerr represent the console display.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

Iostream is an abbreviation of input/output stream. When you include iostream in any of your files (using #include <iostream>), you are signifying to your compiler that the iostream standard header file (which should be a read-only file) should be inserted into your file at that point. When you do so you invoke a cascade of external dependencies, including istream, ostream, ios, xlocnum, climits, cmath, cstdio, cstdlib and streambuf header files, amongst many others. All are required to some degree by iostream.

By including iostream in your files, you expose functions and data types pertinent to streaming input and output, which includes console input and output (scanf() and printf() being the primary functions, as well as the cin, cout and cerr streams). There are few programs that do not make use of both input and output, therefore iostream is usually included at some point in your project, typically in the pre-compilation header. In some cases you may not require the full set of functions or data types exposed by iostream, but you can filter out what you need or don't need via conditional compilation.

For more information, consult your IDE documentation regarding iostream programming.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

Iostream stands for Input/Output stream used in C and C++ languages.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the use of iostream in c plus plus programming?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is difference between iostream and iostreamh in c plus plus?

&lt;iostream.h&gt; is an old style of programming and does not allow using namespaces. If you use &lt;iostream&gt; you can use namespaces, and limit number of predefined function (not used) included with your program.


Can you replace getch of C programming in Linux without using iostream header?

There is a 'getch' in 'conio.h' which has nothing to do with 'iostream'.


What is the use of c plus plus in banks?

Programming language.


What is use of keyword extra in c plus plus programming?

Nothing.


Calculate the square root of 4 using c plus plus programming?

#include&lt;iostream&gt; int main() { std::cout&lt;&lt;"The square root of 4 is "&lt;&lt;sqrt(4.0)&lt;&lt;std::endl; return(0); }


Why study c plus plus programming?

we are using c plus plus programming for developing object oriented programing software.


What programming framework does C plus plus use?

C++ doesn't use a framework; it is a general purpose, object oriented programming language derived from the C programming language. Specific implementations, such as Microsoft Visual C++, make use of frameworks.


Why c plus plus is called as oops?

OOP means "object oriented programming" this means that you can make objects instead of C where you use procedural programming (it's advance try to google it :) )


Differentiate C plus plus and Turbo C?

Turbo C is a software where C or C++ programming environment resides in.But C++ is itself a programming language.


Is cin an output identifier in c plus plus?

No. In C++ with &lt;iostream&gt;, cin is a prefedined class that represents stdin, so it is an input identifier.


Is c plus plus a modular programming?

No, but it does support modular programming through namespaces.


How do you convert numeric value into alpha value in c plus plus programming language?

use the _itoa function