Clrscr() and Getch() in C++
clrscr() and getch() both are predefined function in 'conio.h' (console input output header file).
Gotoxy in Dev c however using gotoxy funxtion is quiet difficult in devc because there is no such header file present in dev c to use gotoxy function w. Diamond Shape Using Alphabet. Please read this thread. Creating terminal for macos. Posted a couple days ago. Gotoxy is a borland-specific function which was never implemented by any other compiler. If you want to use it with other compilers you will have to write your own gotoxy function using operating system specific api calls.
It is a predefined function in 'conio.h' (console input output header file) used to clear the console screen.It is a predefined function, by using this function we can clear the data from console (Monitor). Using of clrscr() is always optional but it should be place after variable or function declaration only.
It is a predefined function in 'conio.h' (console input output header file) will tell to the console wait for some time until a key is hit given after running of program.
By using this function we can read a character directly from the keyboard. Generally getch() are placing at end of the program after printing the output on screen.