-
Clear screen
I have a strange question.
Is thier a clear screen function iostream.h?
I ask this because I'm in a programming class where the teacher only allows you to use files already loaded on his system, so I can't use conio.h, or any of the other wonderful include files I have come to know and love (I never thought I'd say this, but I miss apstrings.....).
And what's worse is that I have to program in a stripped down linux compilier so I can't use any of the microsoft files.
Any ideas?
-
Ask your teacher
a) is clear screen required for completing my assignments?
b) is there a clear screen function in the environment you provide?
If the answer to both is "no", then its easiest to forget about it.
But if you're really desperate
Code:
for ( int i = 0 ; i < 30 ; i++ ) cout << endl;
Is a reasonably portable way of achieving what you want
Or how about
Or even