plees.blogg.se

Conio library c++
Conio library c++








conio library c++

It is use to hold the output or output screen if we.It is also a standard library function why we use it?.Then compiler will show the output of current program that executed and also display the previous output of program.For example:if we execute our program again and again without writing clrscr().we use it to clear the previous output of program.It is a standard library function.Why we use it?.Every C statement ends with statement terminator called semicolon symbol without it compiler generates error and program cannot run.

conio library c++

The word cout followed by << like that cout<< is use to show output in C programming These are the braces which indicates the beginning and ending of main() body.Every C program have main function without it compiler generates error and program cannot run.It indicates the beginning of the actual body of program where open brace indicates beginning of body and closing brace shows closing of body of program.Note: If we don't include iostream.h and conio.h then compiler will show error because compiler will unable to find the definition of word which header file tells. h header files contains definition of some specific words e.g iostream.h contain defination of " cout<< " and conio.h contains definition of clrscr() and getch() where in program iostream.h and conio.h are header files having extension of.It gives access to compiler to access the libraries which contain definition of standard library functions and some specific word. It always starts with # symbol it tells the compiler what kind of header file include in this program to execute it.










Conio library c++