answersLogoWhite

0

Why use header file iostreamh?

Updated: 8/20/2019
User Avatar

Wiki User

7y ago

Best Answer

You use the <iostream> header when you wish to make use of the standard input/output streams, which primarily includes std::cin, std:cout and std::cerr, amongst other standard IO stream facilities.

Note that C++ standard library headers do NOT have file extensions. That is, there is no <iostream.h> header in the C++ standard library. The only headers that do have extensions are those specifically provided by the C standard library. However, you must NOT include these headers in your own code as they will pollute the global namespace. If you require these headers, use the corresponding C++ header instead. For example, if you require <math.h>, include <cmath>. The C++ headers will import all the names from corresponding C header and place them in the C++ standard namespace.

User Avatar

Wiki User

7y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why use header file iostreamh?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the use of header file stdbool.h?

stdbool header file use for a new data type that is boolean value


What is the use of myconstant.h header file?

You can include it into your source.


How do you include a system header file called sysheader.h in a c source file?

There is no system header called share.h, but if there were, it would be: #include &lt;share.h&gt;


What is the name of header file of delay?

Use the help (F1).


How can you create a header file in c?

Use a text-editor.


How do you include classes and structures in header files in c plus plus?

Classes and structures can be put in a header file the same way you would use them in a main program; the only difference is that they are placed in a separate file, called a header file. Then, after creating a new file, include that new file with the definition by the use of the preprocessor #include statement.


What is the different between header file and header pointer?

Header file is a file which is meant to be included into another file during compilation. Examples: string.h, stdio.h, inttypes.h. Header pointer is a pointer to an object called header (for example header of a linked list).


Why you use header files in c?

the use of header files is to add functionality. Header files are basically saying put code in that header file here so you don't have to type that many lines of code.


What is the header file of graphics?

The header file of graphics in TurboC is graphics.h


Which header file must be included to use the function pow?

The std::pow() function can be found in the &lt;cmath&gt; header.


Why you use header file namely stdlib?

It contains useful function-prototypes.


Can you compile program without header file?

Yes,we can compile our program without header file without any error,but we can not use any predefine functions like printf,scanf.