okay i always found clrscrn() or whatever it is confusing, and didnt wanna do it everytime i wanted to clear the screen...thanks to the people that helped me in the "running bat files in C " thread...i found an easier way. sorry if you think it was stupid to post this...and that it is only clutter. but i found it useful anyways heres how: (and sorry if most if you knew about this before)
i use the getche at the end because on windows xp it terminates the program automaticaly if hteres no more code...arghhh i hate that.Code:#include <stdio.h> #include <system.h> main() { printf("Now you see me..[press any key]"); getche(); system("cls"); printf("..now you don't."); getche(); }
so you could use a function with this and call it when ever you need.