Using conio.h in borland you can clear the stuff in the console window using cls().
I'm using Dev-C++ and as a simple hack to clear the screen I have been writing a load of new lines.
All the old stuff is still stored somewhere though. I was wondering how you can flush everything displayed in the console window.
Cheers.