Coding Beyond Technology..

Tuesday, 5 May 2015

Header files and their in-built function - 2

2. conio.h - Header File

Syntax:-  #include<conio.h>

This is one of most important header file used in C++ after iostream.h. It means CONSOLE INPUT OUTPUT (con-io).

This header file include some of the important in-built functions like:

i. clrscr():  Full form is "Clear Screen".This functions is used to clear all the previous outputs generated by the program which are not of any use, from the console.

For example: If you run a program with some input and the program is generating some output, and after the termination of the program you tried to run another program without using clrscr(), the output of the program will be shown on the monitor along with the previous outputs of the program you tried last.

Note:- { clrscr() function is only applicable in the IDE like Turbo C++ and Borland C++ not in Dev                 C++. }

ii. getch(): Full form is "Get Character". This funtion is usually used to hold-on the screen or rather used to pause the flow of execution of the program until and unless you press any key from your input device such as keyboard, the execution will not go further.


There are many more in-functions like putch(), getche(), getchar() etc but above two are most important one.


Readers please do not get confuse about functions, they will be discuss later.

For any query and doubts please do drop it in the comment box. It will be pleasure to clearify your doubts.

Happy coding...

0 comments:

Post a Comment

Popular Posts

Recent Posts

Unordered List

Text Widget

Powered by Blogger.