2.)There are several ways to do this. You could get a cross platform, 3rd party library like ncurses, OR you could simply print '\n' a bunch of times. There is no standard way to clear the screen however.
fyi, Dev C++ is an IDE, code will not be particular to it.