what function can clear the screen?

I know I can use system("cls");but it runs too slow. And I also found another way, clrscr()but VC6.0 don't have it. So, I copyed the code of functin from the internet. It runs well, but is there any easier way to clear the screen? As I said, I use VC6.0.
Maybe this is a bad way to do it, but I have used this:

cout << string(50,'\n');
Yeah or you can make your own function to space down 'x' amount of lines
1
2
3
4
5
6
7

void spaceDown(int lines){
      for(int i = 0; i >= lines; i++){
           std::cout << " " << std::endl;
    }
}
Topic archived. No new replies allowed.