Anyone know the code to clear screen in output off hand, i can't find it any of my books, but there has to be one out there.!
thnx
Anyone know the code to clear screen in output off hand, i can't find it any of my books, but there has to be one out there.!
thnx
Please read the FAQ ( http://www.cprogramming.com/boardfaq.html#clear )
Claus Hetzer
Compiler: Borland 5.5 (on Windows)
Solaris CC (on Unix)
Known Languages: C++, MATLAB, Perl, Java
thanks!!
i'm using a visual studio 6 on a windows xp os.. none of the methods in the FAQ work for this application, anyone else have any ideas
There are at least two options that will work there. You obviously haven't tried them all. There's actually three, if you count tossing your monitor out the window.Originally posted by digarren
i'm using a visual studio 6 on a windows xp os.. none of the methods in the FAQ work for this application, anyone else have any ideas
Quzah.
Hope is the first step on the road to disappointment.
#include <stdlib.h>
int main()
{
system("cls");
return 0;
}
ride or die got it, not sure what apps the other codes are supposed to work on, but i did try them all, cept the out the window one....was getting close...it is just a simple decryption program and i wanted to clear screen after each attemp.
No you didn't. You didn't try them all or you would have found one that worked:Originally posted by digarren
ride or die got it, not sure what apps the other codes are supposed to work on, but i did try them all, cept the out the window one....was getting close...it is just a simple decryption program and i wanted to clear screen after each attemp.
Option 1: You don't have conio.h so this wouldn't work.
Option 2:
putchar some newlines until everything is scrolled off of the screen.
You didn't do that, or it would have worked. See, we're only at #2, and already you have one that works. You just didn't feel like doing anything so you said you tried.
"We are men of action. Lies to not become us."
Quzah.
Hope is the first step on the road to disappointment.
Hey quzah!!!
your right, that would have worked, but i wanted something a little more proffesional, don't think i would have got a good mark for running the screen...but thanks for your input..as a first year programmer i appreciate any help.
This has been handled more times that I can remember.
Solution is in the FAQ.
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.