google search

Popular Posts


Welcome to BCA Notes

>>>>>>>>>>>>>>>>

Visitors

Search This Blog

Blogger templates

Visitor Map


Thursday 27 March 2014

- input output stream header file

 

 


<iostream.h>- input output stream header file 

Provides functionality to use an abstraction called streams specially designed to perform input and output operations on sequences of character, like files or strings. 
Objects cin, cout are from iostream header. 
<conio.h> console input output header file 
conio.h is a C header file used in old MS-DOS compilers to create text user interfaces 

Both are header files which contains libery of serveral functions (use for input & output ). 
eg. clearscr() ,getch() are from conio.h 
This is type of opening files before we use these function. 
If we use these function them without importing header files , sometimes compiler throws error

 

 

Including this header may automatically include other headers, such as <ios><streambuf><istream>, <ostream>and/or <iosfwd>.


Note that the 
iostream class is mainly declared in header <istream>.


Objects

 

Narrow characters (char)

Standard input stream (object )

cout

Standard output stream (object )

cerr

Standard output stream for errors (object )

clog

Standard output stream for logging (object )

 

Wide characters (wchar_t)

wcin

Standard input stream (wide) (object )

wcout

Standard output stream (wide) (object )

wcerr

Standard output stream for errors (wide-oriented) (object )

wclog

Standard output stream for logging (wide) (object )

 



--
Regards


Arihant

0 comments:

Post a Comment