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
:confused:
Printable View
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
:confused:
Please read the FAQ ( http://www.cprogramming.com/boardfaq.html#clear )
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.Quote:
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.
#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:Quote:
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.
eh glad i could help.
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.:p
This has been handled more times that I can remember.
Solution is in the FAQ.