横×縦の数のスペースを出力すれば良い。
ボーランド系なら clrscr() 使え。
Win98 までなら "\x1b[2J" を出力しても良い。
system("cls"); でも良いな。
*BSD or 犬糞なら system("clear");