It's simple, you understand what it means, and it works. There are more complicated, 'proper' versions out there levering the WinAPI if you want to do it in a different way, though.
Still, why do you want to clear the screen anyway? It's normally not all that helpful, it's hard to do, and if you're making a game or something it's just much easier to do it with graphics. Nevertheless, if you're intent on clearing the screen this article has a bunch of ways to do it: http://www.cplusplus.com/articles/4z18T05o/
Often works but beware, you will get a lot of advice not to use it for a lot of good reasons, but it is quicker, better and cheaper for class exercises than taking a hammer to the monitor when the deadline beckons or at an assessment demo.