The clrscr
command is used in programming, particularly in older versions of languages like Turbo C or Borland C++, to clear the console screen. This command helps improve the readability of the output by removing previous text and providing a clean slate for new information. It's often employed in console applications to enhance user experience, especially in situations where the output changes frequently. However, in modern programming environments, alternative methods, such as ANSI escape codes or built-in functions, are typically preferred for similar functionality.
by using "clrscr" command at starting of the program
Many reasons, one of them: there is no 'clrscr' in Java.
Function 'clrscr' is not part of the C language. Or the standard libraries. It is MS-DOS specific function, use the help for details (clrscr means clear the screen).
No, you don't have to.
You could manipulate screen's video memory directly in order to achieve that. Video memory address in DOS text mode is allocated on segment 0xB800. Look at the related links section, I've coded an example program for you that uses ClrScr() and ClrScrAsm() functions. Both featuring color support! ;)
You can use system("cls") function with stdlib.h
What do you mean by \'alternate function of clrscr\'? A function that undoes clrscr? Or one that fills the screen with random characters? Anyway, clrscr is not part of the standard C library, it is DOS-specific.
clrscr-clear screen its give you direct space to work. without waiting
use of routerrip command
Use the help: this function clears the screen. Note: non-standard Borland-specific function, don't use.
clrscr(); it's a in-built method to clear the terminal(desktop) output which was created before..
For Unix/Linux, use the command 'cd /' For Windows, you can also use the same command or 'cd \'