Conio.h Has many Functions which may be used for "Looking Upon" The Output.........
Examples....
getch() gunction is used to prevent the control to return to the editor and remain in the "Command Prompt " Itself where the Output will be Displayed.
getche() is used to "echo" the Output...
Clrscr() to Clear the Screen........
Similar important and Interesting functions are present in the CONIO.H header File.................
I hope i am Precise and i have Cleared Your Doubt.......
Enjoy C..............
What is the need of #include%26lt;conio.h%26gt; in header section of "c" language?
#incluude%26lt;conio.h%26gt; Is Actually A Header File By Including This We Are Allowed To Use Some Console Based Input - Output Operations Such as Inputting Outputting Clearing Screen Getting Character From Console To Abort Programme. So Getting These Functionality We Must Include Perticilar File.
Reply:To find a brief note about this command and to know anything in C, click here
http://www.aasted.org/GC/c-tut.php
For any tech queries:
http://dexter-laboratory.blogspot.com/
Reply:when we use clrscr option
its compulsory to use #include%26lt;conio.h%26gt;
Reply:conio.h is a header file used in old MS-DOS compilers, however, it is not part of the C programming language, the C standard library, ISO C or by POSIX.
This header declares several useful library functions for performing "console input and output" from a program. Most C compilers that target DOS, Windows 3.x, Phar Lap, DOSX, OS/2, or Win32 have this header and supply the concomitant library functions in the default C library. Most C compilers that target UNIX and Linux do not have this header and do not supply the concomitant library functions.
The library functions declared by conio.h vary significantly from compiler to compiler. As originally implemented in Microsoft C/C++ the various functions mapped directly to the first few DOS int 21h functions. But the library supplied with Turbo C++ and Borland C++ did not use the DOS API but instead accessed video RAM directly for output and used BIOS interrupt calls.
Compilers that targetted non-DOS operating systems, such as Linux, Win32 and OS/2, provided yet more different implementations of these functions.
///
Reply:If you are using the function "clrscr()" then it is compulsory to inckude the header file conio.h, else you get an error,not only that "clrscr()" using any function from that file needs the inclution of that file.hence it is needed to include that file.
morning glory
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment