Clear Screen Function In Dev C++

Function

Jun 17, 2004  Dev C Clear Screen I just downloaded Dev c because the complier i was using (TC LITE) didn't allow me to make exe files. It also wasn't windows based which is a pain editing in. Jul 19, 2005  C can not clear the screen, as indicated in the FAQ Victor pointed you to. C can do a lot of things using the OS specific libraries. Dont say C cannot clear the screen. Instead, you should say standard C cannot clear the screen. That's the only C we speak of here. Thats what I said too. But dont misguide the OP by saying that. Clear Output Screen using C program. Clear Output Screen - When we run a program, previous output or other command prompt/ Linux Terminal command's output appear there. We can clear the output screen using C program. Functions which are used to clear output screen depend on the compiler, commonly used functions/methods are.

P: n/a
'Ashish' <as*****@hotmail.com> wrote...

'Victor Bazarov' <v.********@attAbi.com> wrote in message
news:vf************@corp.supernews.com...
'Ashish' <as*****@hotmail.com> wrote...

'Unforgiven' <ja*******@hotmail.com> wrote in message
news:bd************@ID-136341.news.dfncis.de...
> Tim Mierzejewski wrote:
> > How do I clear the text from my screen, other than a bunch of n's or > > endl's?
>
> C++ can not clear the screen, as indicated in the FAQ Victor pointed you to.
Huh? C++ can do a lot of things using the OS specific libraries. Dont say C++ cannot clear the screen. Instead, you should say standard C++cannot clear the screen.
That's the only C++ we speak of here.

Thats what I said too... but dont misguide the OP by saying that C++

cannot
Misguide?
do this, or can do that. Guide him to an appropriate newsgroup. I am sure
you understand that.

But in all honesty, C++ cannot clear the screen. It's some OS-
specific library call that does that. Or sequence of characters
output to console or ... But it is not a language thing. And,
by the way, while there exist extensions to the language created
by some eager compiler vendors, there is only one C++ -- Standard.
That's what we mean when we say 'C++ cannot do that'. Another
example: can C++ read files? Yes. Can C++ read JPEG files? Yes.
Can C++ read and display JPEG files? NO. Displaying them is not
a language feature. C++ cannot do that. Not standard, not any
other C++. The same with clearing the screen.
Guiding others to a particular newsgroup is a voluntary thing. If
you stop me in the street and ask whether I could give you a lift
to a town a thousand kilometres away, I'll probably say 'No, sorry,
I cannot do that', but I am not obligated to explain to you all
possible options you have or direct you to a bus station. It is
up to you to figure that out. (Of course it might be mighty kind
of me to point you to a bus stop, and I _probably_ would do that
if I knew where you were going -- The OP just asked whether there
was a way to clear the screen except outputting newline characters,
and there isn't). See the point?
Anyway...
Victor

Is there anyway we can clear only a selected part of the console window?
clrscr() from conio.h & system('CLS') clears the whole screen.
So how to clear screen selectively?


For example, one of my old code prints this,

But i want it to be like this, just after the user enters the last element.

Clear screen function in dev c 4
  • 4 Contributors
  • forum 6 Replies
  • 1,242 Views
  • 5 Days Discussion Span
  • commentLatest Postby PrimePacksterLatest Post

lohath

may be u can use a loop of cout<<endl; statement to get the desired output
or try with graphics.h filling that part of the output with background colour

Clear Screen Function In Dev C Software

Clear Screen Function In Dev C 2017

Edited by lohath: n/a