PDA

View Full Version : #include where is this file?



sana.pari
04-24-2011, 07:03 PM
Subject: #include where is this file?
AA

Respect sir Please need little clarification about the following things.

1. Where is iostream file?

2. Can we create custom like this file or alter this

Support
04-24-2011, 07:08 PM
Dear Student,
Actually, iostream is a header file which is used for input/output in the C++ programming language. For example, we use cin and cout statements in our programs for getting the value from the keyboard or printing some information on the screen, both of these cin and cout are part of our iostream.h header file. It is part of the C++ standard library and the name stands for Input/Output Stream. It must be kept in mind that if you do not include iostream.h header file in our program and still try to use cout and cin statement, then it is a syntax error.

Secondly, yes you can create your own header files and write code in them. Dev C++ allows you to create your own header files which contain your own code but you must avoid tempering existing standard library file as it may result into a lot of confusion.