Clearing the console window?

So I've started making a console based calculator that has secret functions and lots of other cool stuff (400 lines of it, too).
But I find myself using SYSTEM("cls"); more times than i can count.
It works but on some systems my program may reach for resources that aren't there when executing this code.
is there an alternative.
Topic archived. No new replies allowed.