Menu
In the program, we display the message (Press any key to clear the screen) using printf and ask the user to press a key. When the user presses a key screen will be cleared and another message will be printed. Function clrscr doesn't work in Dev C compiler. Use the cleardevice function instead of clrscr in graphics mode.
Code For Clear Screen In Dev C++
|
Dev C++ Programs
- Depending on which version of C you're using. Borland will allow you to easily set the cursor position and then overwrite what you need. You can also just KEEP all of the data in an array or list and rewrite just the part you want when the screen is fully cleared.
- Jun 22, 2016 For example, in case of C after encountering “scanf”, if we need to input a character array or character,and in case of C, after encountering“cin” statement, we require to input a character array or a string, we require to clear the input buffer or else the desired input is occupied by buffer of previous variable, not by the.
- Clear screen in dev c. C / C Forums on Bytes. How do i clear the screen using dev c. Is there a built in function, if so, what header function should i use. Please note, thi is dev c.
- Summary Some non-Microsoft versions of C provide a clrscr function for clearing the screen in a DOS application. However, there is no Win32 Application Programming Interface (API) or C-Runtime function that will perform this function. These methods are described in the following 'More Information' section.